From efe09c1d924012000bdf6c399679d54f4d603c99 Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 14 Dec 2008 12:04:08 -0600 Subject: [PATCH] *Fix the bug that ~Creature causes crash. (deleted when possessed) --HG-- branch : trunk --- src/game/Unit.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 8bf2968fd40..1face06a8c1 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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(); }