(svn r4631) - NewGRF: fix incorrect length check

This commit is contained in:
peter1138
2006-04-30 18:39:31 +00:00
parent 771b9fc75b
commit 967752fe7c

View File

@@ -1426,7 +1426,7 @@ static void NewSpriteGroup(byte *buf, int len)
DeterministicSpriteGroupAdjust *adjust; DeterministicSpriteGroupAdjust *adjust;
if (group->g.determ.num_adjusts > 0) { 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++; group->g.determ.num_adjusts++;