Skip to content

Commit

Permalink
[patch 213] Fixed a crash with Object::GetUInt64Value
Browse files Browse the repository at this point in the history
  • Loading branch information
insider42 committed Nov 13, 2009
1 parent f8514c3 commit 6708cb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/Unit.cpp
Expand Up @@ -11931,6 +11931,8 @@ void Unit::RemoveFromWorld()
{
RemoveNotOwnSingleTargetAuras();
RemoveGuardians();
RemoveAllGameObjects();
RemoveAllDynObjects();
}

Object::RemoveFromWorld();
Expand All @@ -11947,8 +11949,6 @@ void Unit::CleanupsBeforeDelete()
DeleteThreatList();
getHostileRefManager().setOnlineOfflineState(false);
RemoveAllAuras(AURA_REMOVE_BY_DELETE);
RemoveAllGameObjects();
RemoveAllDynObjects();
GetMotionMaster()->Clear(false); // remove different non-standard movement generators.
}
WorldObject::CleanupsBeforeDelete();
Expand Down

0 comments on commit 6708cb5

Please sign in to comment.