Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix unit move+attack aborted, 21961

stupid c++ allows int to bool implicit cast.
  • Loading branch information...
commit 28ebde574105524b13c319689c7ca1de6bd440f4 1 parent 0da9726
@gfgtdf gfgtdf authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/actions/move.cpp
View
2  src/actions/move.cpp
@@ -1256,7 +1256,7 @@ size_t move_unit_and_record(const std::vector<map_location> &steps,
*/
recorder.add_synced_command("move",replay_helper::get_movement(steps, continued_move, skip_ally_sighted));
set_scontext_synced sync;
- bool r = move_unit_internal(undo_stack, show_move, interrupted, mover);
+ size_t r = move_unit_internal(undo_stack, show_move, interrupted, mover);
resources::controller->check_victory();
return r;
}
Please sign in to comment.
Something went wrong with that request. Please try again.