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

This commit is contained in:
yexo 2011-05-01 21:02:18 +00:00
parent cd4379aada
commit 480c1bd9e0

View File

@ -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);