Fix OOS when teleporting unit with no moves left

debug teleport doesn't use movement points, so there's no need to check them.
This commit is contained in:
pentarctagon 2024-04-18 12:56:18 -05:00 committed by Pentarctagon
parent d3b3c8c07a
commit 7b0dd32d79

View file

@ -1321,11 +1321,6 @@ void teleport_unit_from_replay(const std::vector<map_location> &steps,
bool continued_move, bool skip_ally_sighted, bool show_move)
{
unit_mover mover(steps, nullptr, continued_move, skip_ally_sighted);
if ( !mover.check_expected_movement() )
{
replay::process_error("found corrupt movement in replay.");
return;
}
mover.try_teleport(show_move);
}