From e9837ff1ec1326aec622366ae29ff1aa81581daf Mon Sep 17 00:00:00 2001 From: yexo Date: Sun, 1 May 2011 21:02:18 +0000 Subject: (svn r22409) -Fix: [NewGRF] make sure the action2 ID of a generic feature callback is valid --- src/newgrf.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/newgrf.cpp') 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); -- cgit v1.2.3-70-g09d2