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);
 }
 


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to