mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r4631) - NewGRF: fix incorrect length check
This commit is contained in:
parent
ea54151de5
commit
4a687fdbaa
2
newgrf.c
2
newgrf.c
@ -1426,7 +1426,7 @@ static void NewSpriteGroup(byte *buf, int len)
|
||||
DeterministicSpriteGroupAdjust *adjust;
|
||||
|
||||
if (group->g.determ.num_adjusts > 0) {
|
||||
check_length(bufend - buf, 2 + (varsize * 3) + 3, "NewSpriteGroup (Deterministic) (3)");
|
||||
check_length(bufend - buf, 2 + varsize + 3, "NewSpriteGroup (Deterministic) (3)");
|
||||
}
|
||||
|
||||
group->g.determ.num_adjusts++;
|
||||
|
Loading…
Reference in New Issue
Block a user