Skip to content

Commit

Permalink
fix: Crash on item loot
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyeriah authored Apr 5, 2022
1 parent 3ca5bab commit ab8d495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transmog_scripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ class PS_Transmogrification : public PlayerScript

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())
{
Expand Down

0 comments on commit ab8d495

Please sign in to comment.