Skip to content

Commit

Permalink
Forgot ifdefs in previous commit, oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Foereaper committed Mar 5, 2024
1 parent 2a7b997 commit 3d0e493
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/server/game/Entities/Player/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3d0e493

Please sign in to comment.