mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 02:11:30 +00:00
[Bug Fix] NPC Armor Upgrade to a slot not handled correctly (#3366)
* [NPC Armor - Bug] NPC upgardes in armor not correct * Revert "[NPC Armor - Bug] NPC upgardes in armor not correct" This reverts commit d5a68654a791073a60aa6d2457250481633cb579. * [NPC item bonuses] Upgrades not processed correctly * Update loottables.cpp --------- Co-authored-by: Kinglykrab <kinglykrab@gmail.com>
This commit is contained in:
parent
b8c91cf4f9
commit
e305ba852b
@ -395,9 +395,15 @@ void NPC::AddLootDrop(
|
||||
foundslot = i;
|
||||
}
|
||||
else {
|
||||
// Unequip old item
|
||||
auto* olditem = GetItem(i);
|
||||
|
||||
olditem->equip_slot = EQ::invslot::SLOT_INVALID;
|
||||
|
||||
equipment[i] = item2->ID;
|
||||
|
||||
foundslot = i;
|
||||
found = true;
|
||||
found = true;
|
||||
}
|
||||
} // end if ac
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user