update item references due to core rewrite of item packets

This commit is contained in:
crow
2025-09-15 09:26:13 -05:00
parent 5c34b97f1e
commit f3eaa829f1

View File

@@ -322,7 +322,7 @@ bool AoeLootCommandScript::ValidateLootingDistance(Player* player, ObjectGuid lg
}
else if (lguid.IsItem())
{
Item* pItem = player->GetItemByGuid(lguid);
::Item* pItem = player->GetItemByGuid(lguid);
return (pItem != nullptr); // Items in inventory don't need distance check
}
else if (lguid.IsCorpse())
@@ -457,7 +457,7 @@ void AoeLootCommandScript::ReleaseAndCleanupLoot(ObjectGuid lguid, Player* playe
}
else if (lguid.IsItem())
{
Item* pItem = player->GetItemByGuid(lguid);
::Item* pItem = player->GetItemByGuid(lguid);
if (!pItem)
return;
@@ -544,7 +544,7 @@ bool AoeLootCommandScript::ProcessSingleLootSlot(Player* player, ObjectGuid lgui
else if (lguid.IsItem())
{
Item* pItem = player->GetItemByGuid(lguid);
::Item* pItem = player->GetItemByGuid(lguid);
if (!pItem)
{
player->SendLootRelease(lguid);