diff options
author | peter1138 <peter1138@openttd.org> | 2006-04-30 18:39:31 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-04-30 18:39:31 +0000 |
commit | 967752fe7c945fecc980ec46c0971038a161c846 (patch) | |
tree | 1104f23a3b9aed564ae658227b1db26355e28a80 | |
parent | 771b9fc75b99988de79515dcdee117966b0db9fd (diff) | |
download | openttd-967752fe7c945fecc980ec46c0971038a161c846.tar.xz |
(svn r4631) - NewGRF: fix incorrect length check
-rw-r--r-- | newgrf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++; |