Whiteboard: Fix logic for end-or-turn dialog box.

This commit is contained in:
Gabriel Morin 2010-07-20 21:10:59 +00:00
parent f2be072f83
commit 3ba322db84

View File

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