diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index d6515a04..383a078f 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -196,7 +196,6 @@ public class PowersParser { powerEntry.curves.put(arguments.get(0), mbEnums.CompoundCurveType.valueOf(arguments.get(1))); break; case "EQPREREQ": - EquipmentPreReq equipmentPreReq = new EquipmentPreReq(); matcher1 = STRSPLIT_REGEX.matcher(lineValues.get(1).trim()); arguments = new ArrayList<>(); @@ -206,6 +205,7 @@ public class PowersParser { argumentIterator = arguments.iterator(); while (argumentIterator.hasNext()) { + EquipmentPreReq equipmentPreReq = new EquipmentPreReq(); equipmentPreReq.slot = mbEnums.EquipSlotType.valueOf(arguments.get(0)); equipmentPreReq.skill = arguments.get(1).replaceAll("\"", ""); equipmentPreReq.required = Integer.parseInt(arguments.get(2));