diff --git a/src/aoe_loot.cpp b/src/aoe_loot.cpp index 112a6c8..9be017d 100644 --- a/src/aoe_loot.cpp +++ b/src/aoe_loot.cpp @@ -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);