Skip to content

Commit

Permalink
[patch 105] Fixed crash with Player::BuildPlayerRepop
Browse files Browse the repository at this point in the history
  • Loading branch information
insider42 committed Mar 9, 2010
1 parent e0c7f09 commit f28c633
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game/Player.cpp
Expand Up @@ -4165,7 +4165,8 @@ void Player::BuildPlayerRepop()
if(GetCorpse())
{
sLog.outError("BuildPlayerRepop: player %s(%d) already has a corpse", GetName(), GetGUIDLow());
assert(false);
sLog.outError("Removing player %s(%d) corpse from DB", GetName(), GetGUIDLow());
CharacterDatabase.PExecute("DELETE FROM corpse WHERE player = '%d'",GetGUIDLow());
}

// create a corpse and place it at the player's location
Expand Down

0 comments on commit f28c633

Please sign in to comment.