From 075e9da01889f559cb179403145d1dcd0a819c93 Mon Sep 17 00:00:00 2001 From: Revision Date: Thu, 18 Jul 2024 13:08:30 +0200 Subject: [PATCH] Fix test --- src/mod_junk_to_gold.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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);