Removed some redundant player->SaveToDB calls, original autor balrok

--HG--
branch : trunk
This commit is contained in:
n0n4m3 committed 2009-12-17 07:56:20 +01:00
1 parent 2b5151f50c
commit 863fca80eb
8 files changed
+7 -13

No files matched your search

+2 -1
View File
@@ -4567,7 +4567,8 @@ void Player::CreateCorpse()
void Player::SpawnCorpseBones()
{
if(ObjectAccessor::Instance().ConvertCorpseForPlayer(GetGUID()))
SaveToDB(); // prevent loading as ghost without corpse
if (!GetSession()->PlayerLogoutWithSave()) // at logout we will already store the player
SaveToDB(); // prevent loading as ghost without corpse
}
Corpse* Player::GetCorpse() const