mail[Wesnoth-commits] r34348 - /trunk/src/formula_ai.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by dragonking on March 31, 2009 - 19:27:
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")




Related Messages


Powered by MHonArc, Updated Tue Mar 31 20:00:40 2009