Author: dragonking
Date: Tue Mar 31 19:27:38 2009
New Revision: 34348
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34348&view=rev
Log:
Ported r34346 to trunk
Modified:
trunk/src/formula_ai.cpp
Modified: trunk/src/formula_ai.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/formula_ai.cpp?rev=34348&r1=34347&r2=34348&view=diff
==============================================================================
--- trunk/src/formula_ai.cpp (original)
+++ trunk/src/formula_ai.cpp Tue Mar 31 19:27:38 2009
@@ -1679,7 +1679,7 @@
game_logic::map_formula_callable
callable(this);
callable.add_ref();
callable.add("me", variant(new
unit_callable(*i)));
- while ( make_move(loop_formula, callable) ) {}
+ while ( make_move(loop_formula, callable) &&
i.valid() ) {}
}
catch(formula_error& e) {
if(e.filename == "formula")
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits