(svn r4631) - NewGRF: fix incorrect length check

This commit is contained in:
peter1138 2006-04-30 18:39:31 +00:00
parent ea54151de5
commit 4a687fdbaa

View File

@ -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++;