Removed some redundant player->SaveToDB calls, original autor balrok
--HG-- branch : trunk
This commit is contained in:
1 parent
2b5151f50c
commit
863fca80eb
8 files changed
+7
-13
No files matched your search
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user