mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
fix(Core/Commands): Item duplication exploit (#9650)
This commit is contained in:
@@ -75,7 +75,7 @@ public:
|
||||
stmt->setUInt32(0, restoreId);
|
||||
PreparedQueryResult fields = CharacterDatabase.Query(stmt);
|
||||
|
||||
if (!fields || !(*fields)[1].GetUInt32())
|
||||
if (!fields || !(*fields)[1].GetUInt32() || (*fields)[3].GetUInt32() != player.GetGUID().GetCounter())
|
||||
{
|
||||
handler->SendSysMessage(LANG_ITEM_RESTORE_MISSING);
|
||||
handler->SetSentErrorMessage(true);
|
||||
|
||||
Reference in New Issue
Block a user