diff options
author | KingPin <none@none> | 2008-10-21 13:19:26 -0500 |
---|---|---|
committer | KingPin <none@none> | 2008-10-21 13:19:26 -0500 |
commit | b8e87bfc515b85c5003fd81e9c4e98b7b98407ae (patch) | |
tree | b9141c50c6a7d6acce83dcfc856ea514de03e51f /src/game/WorldSession.cpp | |
parent | 35f7512be9d24b18a1821218ba5c9550661d96f0 (diff) |
[svn] * Prevent Cheating at logout/login by players. Thank you Visagalis
* Set scripts to eol style native
--HG--
branch : trunk
Diffstat (limited to 'src/game/WorldSession.cpp')
-rw-r--r-- | src/game/WorldSession.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/WorldSession.cpp b/src/game/WorldSession.cpp index 194c2da640f..fcfc450e86c 100644 --- a/src/game/WorldSession.cpp +++ b/src/game/WorldSession.cpp @@ -246,6 +246,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()) |