*Fix the bug that ~Creature causes crash. (deleted when possessed)
--HG-- branch : trunk
This commit is contained in:
+1
-2
@@ -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