From 7347e037bf1f830f41fdd4df2365054d6aff66ef Mon Sep 17 00:00:00 2001 From: Revision Date: Thu, 18 Jul 2024 13:11:15 +0200 Subject: [PATCH] More testing Added another check to try to fix a crash related to playerbots. --- src/mod_junk_to_gold.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_junk_to_gold.cpp b/src/mod_junk_to_gold.cpp index ae472fd..3d5a90a 100644 --- a/src/mod_junk_to_gold.cpp +++ b/src/mod_junk_to_gold.cpp @@ -9,7 +9,7 @@ public: void OnLootItem(Player* player, Item* item, uint32 count, ObjectGuid /*lootguid*/) override { - if (!item) + if (!item || !item->GetTemplate()) { return; }