From c3b217db8734f3461d3aa17fa2efdff38b2baf7d Mon Sep 17 00:00:00 2001 From: arrai Date: Mon, 16 Mar 2009 16:50:46 +0100 Subject: [PATCH] [7470] Fixed possible loot exploit, thanks to leak` for reporting --- src/game/Player.cpp | 3 +++ src/shared/revision_nr.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index f8ececd4994..70a0804cbb2 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -7468,6 +7468,9 @@ void Player::SendLootRelease( uint64 guid ) void Player::SendLoot(uint64 guid, LootType loot_type) { + if (uint64 lguid = GetLootGUID()) + m_session->DoLootRelease(lguid); + Loot *loot = 0; PermissionTypes permission = ALL_PERMISSION; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index e9e5b0f8627..0bb9aa25bf3 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7469" + #define REVISION_NR "7470" #endif // __REVISION_NR_H__