summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-30 18:39:31 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-30 18:39:31 +0000
commit967752fe7c945fecc980ec46c0971038a161c846 (patch)
tree1104f23a3b9aed564ae658227b1db26355e28a80
parent771b9fc75b99988de79515dcdee117966b0db9fd (diff)
downloadopenttd-967752fe7c945fecc980ec46c0971038a161c846.tar.xz
(svn r4631) - NewGRF: fix incorrect length check
-rw-r--r--newgrf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf.c b/newgrf.c
index 75092bcf2..37d452e03 100644
--- a/newgrf.c
+++ b/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++;