Merge branch '4.3.4' into '4.3.4'

Fixed gameobjects not always despawning after use/delete

See merge request !41
This commit is contained in:
Aokromes
2017-04-22 15:43:12 +00:00

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