added assertion
This commit is contained in:
parent
218d51064e
commit
148897f5fe
1 changed files with 1 additions and 0 deletions
|
@ -303,6 +303,7 @@ void play_turn(game_data& gameinfo, game_state& state_of_game,
|
|||
else if(selected_hex.valid() && selected_hex != hex &&
|
||||
enemy == units.end() && !current_route.steps.empty() &&
|
||||
current_route.steps.front() == selected_hex) {
|
||||
assert(units.count(selected_hex));
|
||||
const size_t moves = move_unit(&gui,map,units,teams,
|
||||
current_route.steps,&recorder,&undo_stack);
|
||||
redo_stack.clear();
|
||||
|
|
Loading…
Add table
Reference in a new issue