mirror of https://github.com/OpenTTD/OpenTTD
(svn r22409) -Fix: [NewGRF] make sure the action2 ID of a generic feature callback is valid
parent
6a1eb377ae
commit
e9837ff1ec
|
@ -4565,6 +4565,7 @@ static void FeatureMapSpriteGroup(ByteReader *buf)
|
||||||
/* Skip number of cargo ids? */
|
/* Skip number of cargo ids? */
|
||||||
buf->ReadByte();
|
buf->ReadByte();
|
||||||
uint16 groupid = buf->ReadWord();
|
uint16 groupid = buf->ReadWord();
|
||||||
|
if (!IsValidGroupID(groupid, "FeatureMapSpriteGroup")) return;
|
||||||
|
|
||||||
grfmsg(6, "FeatureMapSpriteGroup: Adding generic feature callback for feature %d", feature);
|
grfmsg(6, "FeatureMapSpriteGroup: Adding generic feature callback for feature %d", feature);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue