changeset 5288 | 7758df538a10 |
parent 5287 | 94a6c3c924b2 |
child 5306 | 8081baa646cd |
--- a/newgrf.c Fri Dec 08 19:12:43 2006 +0000 +++ b/newgrf.c Fri Dec 08 19:35:13 2006 +0000 @@ -1624,7 +1624,7 @@ 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. */