Core/Players: Fix corpse remove visual for clients

This commit is contained in:
Machiavelli
2011-07-13 14:40:46 +02:00
parent 2400a8a1dd
commit e9e50c4937
@@ -200,7 +200,10 @@ void ObjectAccessor::RemoveCorpse(Corpse* corpse)
ASSERT(corpse && corpse->GetType() != CORPSE_BONES); ASSERT(corpse && corpse->GetType() != CORPSE_BONES);
if (corpse->FindMap()) if (corpse->FindMap())
{
corpse->DestroyForNearbyPlayers();
corpse->FindMap()->Remove(corpse, false); corpse->FindMap()->Remove(corpse, false);
}
else else
corpse->RemoveFromWorld(); corpse->RemoveFromWorld();