Fixed gameobjects not always despawning after use/delete
This commit is contained in:
1 parent
e4bfd0aa05
commit
d113ad883c
1 file changed
+1
-3
@@ -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