diff options
author | megamage <none@none> | 2009-05-06 00:06:38 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-06 00:06:38 -0500 |
commit | 3f6f15e34b11586d4b819cd89261fb03f690bb9f (patch) | |
tree | d058b290537c5cea2e3300c5af71d5449227c341 /src/game/Creature.cpp | |
parent | f4e86543377c9e4e3746b579106cb4d72d099fa1 (diff) |
*Update instance script functions.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r-- | src/game/Creature.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 68e7ddd1640..1c905de68b8 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -186,7 +186,7 @@ void Creature::RemoveFromWorld() { if(Map *map = FindMap()) if(map->IsDungeon() && ((InstanceMap*)map)->GetInstanceData()) - ((InstanceMap*)map)->GetInstanceData()->OnCreatureRemove(this); + ((InstanceMap*)map)->GetInstanceData()->OnCreatureCreate(this, false); if(m_formation) formation_mgr.RemoveCreatureFromGroup(m_formation, this); Unit::RemoveFromWorld(); @@ -1387,7 +1387,7 @@ bool Creature::CreateFromProto(uint32 guidlow, uint32 Entry, uint32 team, const Map *map = FindMap(); if(map && map->IsDungeon() && ((InstanceMap*)map)->GetInstanceData()) { - ((InstanceMap*)map)->GetInstanceData()->OnCreatureCreate(this, Entry); + ((InstanceMap*)map)->GetInstanceData()->OnCreatureCreate(this); } return true; |