added assertion

This commit is contained in:
Dave White 2003-09-28 07:17:30 +00:00
parent 218d51064e
commit 148897f5fe

View file

@ -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();