More testing

Added another check to try to fix a crash related to playerbots.
This commit is contained in:
Revision
2024-07-18 13:11:15 +02:00
parent 075e9da018
commit 7347e037bf

View File

@@ -9,7 +9,7 @@ public:
void OnLootItem(Player* player, Item* item, uint32 count, ObjectGuid /*lootguid*/) override
{
if (!item)
if (!item || !item->GetTemplate())
{
return;
}