From 3d0e493da5800f369cdf1d171ad95f79a812a3d9 Mon Sep 17 00:00:00 2001 From: Foereaper Date: Tue, 5 Mar 2024 21:06:04 +0100 Subject: [PATCH] Forgot ifdefs in previous commit, oops --- src/server/game/Entities/Player/Player.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index e533a790da..07a2ebf80f 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -12328,9 +12328,10 @@ void Player::RemoveItem(uint8 bag, uint8 slot, bool update) default: break; } - +#ifdef ELUNA if (Eluna* e = GetEluna()) e->OnUnEquip(this, pItem, slot); +#endif } } @@ -12470,9 +12471,10 @@ void Player::DestroyItem(uint8 bag, uint8 slot, bool update) // equipment visual show SetVisibleItemSlot(slot, nullptr); - +#ifdef ELUNA if (Eluna* e = GetEluna()) e->OnUnEquip(this, pItem, slot); +#endif } m_items[slot] = nullptr;