fix(Core/Commands): Item duplication exploit (#9650)
This commit is contained in:
parent
41e19b8bb5
commit
5ec50ac119
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue