diff options
| author | megamage <none@none> | 2009-03-28 16:04:37 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-03-28 16:04:37 -0600 |
| commit | eb894f39e8e05cfe2f266107da4410d19558ff80 (patch) | |
| tree | 744f14294cf8ee616f894f93842ee8d02139261a /src/game/Creature.cpp | |
| parent | 3c624f7c630305b4409a205af580c711f06cc33c (diff) | |
*First remove object from world then unregister it. This may fix some crashes.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
| -rw-r--r-- | src/game/Creature.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 4e5fca4e9d6..49ec6854e9d 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -185,8 +185,8 @@ void Creature::RemoveFromWorld() { if(m_formationID) formation_mgr.DestroyGroup(m_formationID, GetGUID()); - ObjectAccessor::Instance().RemoveObject(this); Unit::RemoveFromWorld(); + ObjectAccessor::Instance().RemoveObject(this); } } |
