*[8261] Skip not in world targets in same way as not existed targets (note: this is a hack and needs better sollution) Author: VladimirMangos.
--HG-- branch : trunk
This commit is contained in:
1 parent
98a80ff518
commit
d783273955
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -12198,7 +12198,6 @@ void Unit::RemoveFromWorld()
|
||||
ExitVehicle();
|
||||
UnsummonAllTotems();
|
||||
RemoveAllControlled();
|
||||
GetMotionMaster()->Clear(false); // remove different non-standard movement generators.
|
||||
|
||||
if(m_NotifyListPos >= 0)
|
||||
{
|
||||
@@ -12231,6 +12230,7 @@ void Unit::CleanupsBeforeDelete()
|
||||
getHostilRefManager().setOnlineOfflineState(false);
|
||||
RemoveAllGameObjects();
|
||||
RemoveAllDynObjects();
|
||||
GetMotionMaster()->Clear(false); // remove different non-standard movement generators.
|
||||
|
||||
if(IsInWorld())
|
||||
RemoveFromWorld();
|
||||
|
||||
Reference in new issue
Block a user