mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r22409) -Fix: [NewGRF] make sure the action2 ID of a generic feature callback is valid
This commit is contained in:
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…
Reference in New Issue
Block a user