mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +00:00
(svn r7437) -Fix (r4583): incorrect minimum size check in some cases for VarAction2
This commit is contained in:
parent
d1c5911034
commit
7d98f55882
2
newgrf.c
2
newgrf.c
@ -1624,7 +1624,7 @@ static void NewSpriteGroup(byte *buf, int len)
|
||||
case 2: group->g.determ.size = DSG_SIZE_DWORD; varsize = 4; break;
|
||||
}
|
||||
|
||||
check_length(bufend - buf, 2 + (varsize * 3) + 2, "NewSpriteGroup (Deterministic) (2)");
|
||||
check_length(bufend - buf, 5 + varsize, "NewSpriteGroup (Deterministic) (2)");
|
||||
|
||||
/* Loop through the var adjusts. Unfortunately we don't know how many we have
|
||||
* from the outset, so we shall have to keep reallocing. */
|
||||
|
Loading…
Reference in New Issue
Block a user