aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 754717670f5..c01412ce5c7 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -11050,10 +11050,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();
}