mirror of
https://github.com/noisiver/mod-junk-to-gold.git
synced 2026-01-13 00:38:33 +00:00
More testing
Added another check to try to fix a crash related to playerbots.
This commit is contained in:
@@ -9,7 +9,7 @@ public:
|
|||||||
|
|
||||||
void OnLootItem(Player* player, Item* item, uint32 count, ObjectGuid /*lootguid*/) override
|
void OnLootItem(Player* player, Item* item, uint32 count, ObjectGuid /*lootguid*/) override
|
||||||
{
|
{
|
||||||
if (!item)
|
if (!item || !item->GetTemplate())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user