Fixed gameobjects not always despawning after use/delete

This commit is contained in:
roc13x
2017-04-19 20:05:32 +01:00
parent e4bfd0aa05
commit d113ad883c

View File

@@ -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());
}
}