mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 04:37:01 +00:00
[11458] Non-item related uint64 guids replaced by ObjectGUids in Player.h
Also let ObjectAccessor::FindPlayer optimize empty guid case work.
This commit is contained in:
parent
1d781cd431
commit
151e5eae9c
13 changed files with 123 additions and 125 deletions
|
|
@ -336,8 +336,9 @@ void WorldSession::LogoutPlayer(bool Save)
|
|||
{
|
||||
sLog.outChar("Account: %d (IP: %s) Logout Character:[%s] (guid: %u)", GetAccountId(), GetRemoteAddress().c_str(), _player->GetName() ,_player->GetGUIDLow());
|
||||
|
||||
if (uint64 lguid = GetPlayer()->GetLootGUID())
|
||||
DoLootRelease(lguid);
|
||||
ObjectGuid lootGuid = GetPlayer()->GetLootGuid();
|
||||
if (!lootGuid.IsEmpty())
|
||||
DoLootRelease(lootGuid);
|
||||
|
||||
///- 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue