mail[Wesnoth-commits] r34346 - /branches/1.6/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:23:
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")




Related Messages


Powered by MHonArc, Updated Tue Mar 31 19:40:28 2009