mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-25 16:21:40 +00:00
added assertion
This commit is contained in:
parent
218d51064e
commit
148897f5fe
@ -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…
x
Reference in New Issue
Block a user