fix: Crash on item loot

This commit is contained in:
Skjalf
2022-04-05 09:58:16 -03:00
committed by GitHub
parent 3ca5bab534
commit ab8d495d95

View File

@@ -513,7 +513,7 @@ public:
void OnLootItem(Player* player, Item* item, uint32 /*count*/, ObjectGuid /*lootguid*/) override
{
if (!sT->GetUseCollectionSystem())
if (!sT->GetUseCollectionSystem() || !item)
return;
if (item->GetTemplate()->Bonding == ItemBondingType::BIND_WHEN_PICKED_UP || item->IsSoulBound())
{