Prevent cheating with player loot.

This commit is contained in:
VladimirMangos 2008-10-21 21:57:11 +04:00
parent 911dbe0b29
commit e441c5c48c

View file

@ -243,6 +243,9 @@ void WorldSession::LogoutPlayer(bool Save)
if (_player)
{
if (uint64 lguid = GetPlayer()->GetLootGUID())
DoLootRelease(lguid);
///- If the player just died before logging out, make him appear as a ghost
//FIXME: logout must be delayed in case lost connection with client in time of combat
if (_player->GetDeathTimer())