summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 4a14381e4..85d9a7ef8 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -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);