CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: David White <[EMAIL PROTECTED]> 05/07/23 15:29:41
Modified files:
src : playturn.cpp
Log message:
Fixed bug where a failed recruit would clear the undo stack
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/playturn.cpp.diff?tr1=1.384&tr2=1.385&r1=text&r2=text
Patches:
Index: wesnoth/src/playturn.cpp
diff -u wesnoth/src/playturn.cpp:1.384 wesnoth/src/playturn.cpp:1.385
--- wesnoth/src/playturn.cpp:1.384 Sat Jul 2 21:37:19 2005
+++ wesnoth/src/playturn.cpp Sat Jul 23 15:29:40 2005
@@ -1,4 +1,4 @@
-/* $Id: playturn.cpp,v 1.384 2005/07/02 21:37:19 ott Exp $ */
+/* $Id: playturn.cpp,v 1.385 2005/07/23 15:29:40 Sirp Exp $ */
/*
Copyright (C) 2003 by David White <[EMAIL PROTECTED]>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
@@ -1941,7 +1941,8 @@
statistics::recruit_unit(new_unit);
} else {
recorder.undo();
- gui::show_dialog(gui_,NULL,"",msg,gui::OK_ONLY);
+ gui::show_dialog(gui_,NULL,"",msg,gui::OK_ONLY);
+ return;
}
clear_undo_stack();