Core/Corpses: Fix a crash in ConvertCorpseForPlayer

This commit is contained in:
Machiavelli
2011-06-29 16:08:23 +02:00
parent 1bc9bb6499
commit 609efde598
2 changed files with 4 additions and 9 deletions
@@ -8612,10 +8612,6 @@ void Player::RemovedInsignia(Player* looterPlr)
RepopAtGraveyard();
}
Corpse *corpse = GetCorpse();
if (!corpse)
return;
// We have to convert player corpse to bones, not to be able to resurrect there
// SpawnCorpseBones isn't handy, 'cos it saves player while he in BG
Corpse *bones = sObjectAccessor->ConvertCorpseForPlayer(GetGUID(), true);