diff --git a/src/mod_junk_to_gold.cpp b/src/mod_junk_to_gold.cpp index b369a68..ae472fd 100644 --- a/src/mod_junk_to_gold.cpp +++ b/src/mod_junk_to_gold.cpp @@ -9,6 +9,11 @@ public: void OnLootItem(Player* player, Item* item, uint32 count, ObjectGuid /*lootguid*/) override { + if (!item) + { + return; + } + if (item->GetTemplate()->Quality == ITEM_QUALITY_POOR) { SendTransactionInformation(player, item, count);