mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 19:10:07 +00:00
Whiteboard: Fix logic for end-or-turn dialog box.
This commit is contained in:
parent
f2be072f83
commit
3ba322db84
@ -1311,7 +1311,7 @@ bool menu_handler::end_turn(int side_num)
|
||||
}
|
||||
|
||||
// Ask for confirmation if units still have planned moves from the whiteboard
|
||||
if(!resources::whiteboard->current_side_has_actions()) {
|
||||
if(resources::whiteboard->current_side_has_actions()) {
|
||||
const int res = gui::dialog(*gui_,"",_("Some units have planned actions left. Do you really want to end your turn?"),gui::YES_NO).show();
|
||||
if (res != 0) {
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user