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:
parent
d3b3c8c07a
commit
7b0dd32d79
1 changed files with 0 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue