diff options
author | peter1138 <peter1138@openttd.org> | 2006-12-08 19:35:13 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-12-08 19:35:13 +0000 |
commit | 7d98f55882e89d77d802d2caf853a7ca552bbc43 (patch) | |
tree | 49dc17e3944dad962f7054916b253e8052136a28 | |
parent | d1c59110344d8fd0bae9abc5cc94adfa314626ba (diff) | |
download | openttd-7d98f55882e89d77d802d2caf853a7ca552bbc43.tar.xz |
(svn r7437) -Fix (r4583): incorrect minimum size check in some cases for VarAction2
-rw-r--r-- | newgrf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |