Core/Corpses: Fix a crash in ConvertCorpseForPlayer

This commit is contained in:
Machiavelli committed 2011-06-29 16:08:23 +02:00
1 parent 1bc9bb6499
commit 609efde598
2 files changed
+4 -9

No files matched your search

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