mail[Wesnoth-commits] r34207 - /trunk/src/unit.cpp


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

Header


Content

Posted by df on March 28, 2009 - 10:40:
Author: dfranke
Date: Sat Mar 28 10:40:39 2009
New Revision: 34207

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34207&view=rev
Log:
Port r34206 (bug #13279) to trunk

Modified:
    trunk/src/unit.cpp

Modified: trunk/src/unit.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.cpp?rev=34207&r1=34206&r2=34207&view=diff
==============================================================================
--- trunk/src/unit.cpp (original)
+++ trunk/src/unit.cpp Sat Mar 28 10:40:39 2009
@@ -1712,6 +1712,7 @@
 }
 
 void unit::add_formula_var(std::string str, variant var) {
+       if(!formula_vars_) formula_vars_ = new 
game_logic::map_formula_callable;
        formula_vars_->add(str, var);
 }
 




Related Messages


Powered by MHonArc, Updated Sat Mar 28 11:00:29 2009