Bugfix in parm type

This commit is contained in:
2024-03-08 13:07:06 -05:00
parent a9dc7b1c5b
commit 83e8a8a218
+3 -2
View File
@@ -1892,8 +1892,9 @@ public class CharacterItemManager {
synchronized (this.equipOrder) { synchronized (this.equipOrder) {
synchronized (this.equipped) { synchronized (this.equipped) {
for (int slot : this.equipOrder) { for (int slot : this.equipOrder) {
if (this.equipped.containsKey(slot)) Enum.EquipSlotType slotType = Enum.EquipSlotType.values()[slot];
ret.add(this.equipped.get(slot)); if (this.equipped.containsKey(slotType))
ret.add(this.equipped.get(slotType));
} }
if (ret.size() != this.equipped.size()) if (ret.size() != this.equipped.size())
//missed adding some items, figure out what. //missed adding some items, figure out what.