Author: dragonking
Date: Tue Mar 31 19:23:53 2009
New Revision: 34346
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34346&view=rev
Log:
Fixed bug #13288
Modified:
branches/1.6/src/formula_ai.cpp
Modified: branches/1.6/src/formula_ai.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/src/formula_ai.cpp?rev=34346&r1=34345&r2=34346&view=diff
==============================================================================
--- branches/1.6/src/formula_ai.cpp (original)
+++ branches/1.6/src/formula_ai.cpp Tue Mar 31 19:23:53 2009
@@ -1628,7 +1628,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