mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
*Fix the bug that ~Creature causes crash. (deleted when possessed)
--HG-- branch : trunk
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user