Fix bug 6042: can't turn off goto on unit.
We were turning off goto on copy... deliberately. Seems weird to me.
This commit is contained in:
parent
da4cdf82ea
commit
287174987c
1 changed files with 1 additions and 1 deletions
|
@ -1002,7 +1002,7 @@ void mouse_handler::left_click(const SDL_MouseButtonEvent& event, const bool bro
|
|||
//if the unit is selected and then itself clicked on,
|
||||
//any goto command is cancelled
|
||||
if(u != units_.end() && !browse && selected_hex_ == hex && u->second.side() == team_num_) {
|
||||
((unit) u->second).set_goto(gamemap::location());
|
||||
u->second.set_goto(gamemap::location());
|
||||
}
|
||||
|
||||
//if we can move to that tile
|
||||
|
|
Loading…
Add table
Reference in a new issue