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


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

Header


Content

Posted by patrick_X99 on September 03, 2007 - 19:34:
Author: sapient
Date: Mon Sep  3 19:34:12 2007
New Revision: 20072

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20072&view=rev
Log:
this probably fixes bug #9914 "growth ability of ghast does not work"

Modified:
    trunk/src/unit.cpp

Modified: trunk/src/unit.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.cpp?rev=20072&r1=20071&r2=20072&view=diff
==============================================================================
--- trunk/src/unit.cpp (original)
+++ trunk/src/unit.cpp Mon Sep  3 19:34:12 2007
@@ -344,6 +344,9 @@
        map_ = map;
        gamestatus_ = game_status;
        teams_ = teams;
+
+       // In case the unit carries EventWML, apply it now
+       game_events::add_events(cfg_.get_children("event"),id_);
 }
 
 // Apply mandatory traits (e.g. undead, mechanical) to a unit and then




Related Messages


Powered by MHonArc, Updated Mon Sep 03 21:40:15 2007