mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
[Hotfix] Delete later in RemoveItem second case
This commit is contained in:
parent
faa8a492f7
commit
119151c0e3
@ -695,9 +695,11 @@ void NPC::RemoveItem(uint32 item_id, uint16 quantity, uint16 slot)
|
||||
else if (item->item_id == item_id && item->equip_slot == slot && quantity >= 1) {
|
||||
if (item->charges <= quantity) {
|
||||
m_loot_items.erase(cur);
|
||||
safe_delete(item);
|
||||
UpdateEquipmentLight();
|
||||
if (UpdateActiveLight()) { SendAppearancePacket(AppearanceType::Light, GetActiveLightType()); }
|
||||
if (UpdateActiveLight()) {
|
||||
SendAppearancePacket(AppearanceType::Light, GetActiveLightType());
|
||||
}
|
||||
safe_delete(item);
|
||||
}
|
||||
else {
|
||||
item->charges -= quantity;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user