mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 13:47:23 +01:00
Fixed gameobjects not always despawning after use/delete
This commit is contained in:
@@ -2764,9 +2764,7 @@ void WorldObject::DestroyForNearbyPlayers()
|
||||
if (isType(TYPEMASK_UNIT) && ToUnit()->GetCharmerGUID() == player->GetGUID()) /// @todo this is for puppet
|
||||
continue;
|
||||
|
||||
if (GetTypeId() == TYPEID_UNIT)
|
||||
DestroyForPlayer(player); // at remove from world (destroy) show kill animation
|
||||
|
||||
DestroyForPlayer(player); // at remove from world (destroy) show kill animation
|
||||
player->m_clientGUIDs.erase(GetGUID());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user