mirror of
https://github.com/azerothcore/mod-transmog
synced 2025-11-29 22:48:30 +08:00
fix: Crash on item loot
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user