attempt to fix bug #5597

This commit is contained in:
Dave White 2003-09-28 07:12:54 +00:00
parent 206f3b89a2
commit 218d51064e

View file

@ -301,10 +301,10 @@ void play_turn(game_data& gameinfo, game_state& state_of_game,
//otherwise we're trying to move to a hex
else if(selected_hex.valid() && selected_hex != hex &&
enemy == units.end() && !current_route.steps.empty()) {
const size_t moves =
move_unit(&gui,map,units,teams,current_route.steps,
&recorder,&undo_stack);
enemy == units.end() && !current_route.steps.empty() &&
current_route.steps.front() == selected_hex) {
const size_t moves = move_unit(&gui,map,units,teams,
current_route.steps,&recorder,&undo_stack);
redo_stack.clear();
selected_hex = gamemap::location();