*Fix the bug that ~Creature causes crash. (deleted when possessed)

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-14 12:04:08 -06:00
parent 1d2179a529
commit efe09c1d92

View File

@@ -11045,10 +11045,9 @@ void Unit::CleanupsBeforeDelete()
RemoveAllAuras();
RemoveAllGameObjects();
RemoveAllDynObjects();
GetMotionMaster()->Clear(false); // remove different non-standard movement generators.
UnpossessSelf(false);
RemoveAllFromVision();
GetMotionMaster()->Clear(false); // remove different non-standard movement generators.
}
RemoveFromWorld();
}