(svn r22409) -Fix: [NewGRF] make sure the action2 ID of a generic feature callback is valid

pull/155/head
yexo 14 years ago
parent cd4379aada
commit 480c1bd9e0

@ -4565,6 +4565,7 @@ static void FeatureMapSpriteGroup(ByteReader *buf)
/* Skip number of cargo ids? */
buf->ReadByte();
uint16 groupid = buf->ReadWord();
if (!IsValidGroupID(groupid, "FeatureMapSpriteGroup")) return;
grfmsg(6, "FeatureMapSpriteGroup: Adding generic feature callback for feature %d", feature);

Loading…
Cancel
Save