fix(Core/Commands): Item duplication exploit (#9650)

This commit is contained in:
Noxies
2021-12-11 17:21:07 +01:00
committed by GitHub
parent 41e19b8bb5
commit 5ec50ac119
2 changed files with 2 additions and 2 deletions

View File

@@ -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);