From 83e8a8a218f995364b251dad285e1c165091199f Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 8 Mar 2024 13:07:06 -0500 Subject: [PATCH] Bugfix in parm type --- src/engine/objects/CharacterItemManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index cc4bae3c..4db4fd51 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -1892,8 +1892,9 @@ public class CharacterItemManager { synchronized (this.equipOrder) { synchronized (this.equipped) { for (int slot : this.equipOrder) { - if (this.equipped.containsKey(slot)) - ret.add(this.equipped.get(slot)); + Enum.EquipSlotType slotType = Enum.EquipSlotType.values()[slot]; + if (this.equipped.containsKey(slotType)) + ret.add(this.equipped.get(slotType)); } if (ret.size() != this.equipped.size()) //missed adding some items, figure out what.