Author: ilor
Date: Fri Apr 4 19:52:43 2008
New Revision: 25546
URL: http://svn.gna.org/viewcvs/wesnoth?rev=25546&view=rev
Log:
fix possible error in load_game_dialog if cancel_order checkbox was drawn but
show_replay was not
Modified:
trunk/src/dialogs.cpp
Modified: trunk/src/dialogs.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/dialogs.cpp?rev=25546&r1=25545&r2=25546&view=diff
==============================================================================
--- trunk/src/dialogs.cpp (original)
+++ trunk/src/dialogs.cpp Fri Apr 4 19:52:43 2008
@@ -720,9 +720,9 @@
return "";
res = filter->get_save_index(res);
-
+ int option_index = 0;
if(show_replay != NULL) {
- *show_replay = lmenu.option_checked(0);
+ *show_replay = lmenu.option_checked(option_index++);
const config& summary = *summaries[res];
if(utils::string_bool(summary["replay"], false) &&
!utils::string_bool(summary["snapshot"], true)) {
@@ -730,7 +730,7 @@
}
}
if (cancel_orders != NULL) {
- *cancel_orders = lmenu.option_checked(1);
+ *cancel_orders = lmenu.option_checked(option_index++);
}
return games[res].name;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits