diff options
author | megamage <none@none> | 2009-05-01 11:38:53 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-01 11:38:53 -0500 |
commit | 623c97edd696f23a65bdfcaf1ee9aa5094260c7d (patch) | |
tree | 41cca58eec148fcf609d38afb18c147a7a55a01a /src | |
parent | 1ea5d4265da97657c903f73fa18cbd0ca26eebff (diff) |
*Always call Initialize when a instancedata is created.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Map.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp index 65c30f1781e..4ed7593d725 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -2021,6 +2021,8 @@ void InstanceMap::CreateInstanceData(bool load) if(!i_data) return; + i_data->Initialize(); + if(load) { // TODO: make a global storage for this @@ -2037,11 +2039,6 @@ void InstanceMap::CreateInstanceData(bool load) delete result; } } - else - { - sLog.outDebug("New instance data, \"%s\" ,initialized!", objmgr.GetScriptName(i_script_id)); - i_data->Initialize(); - } } /* |