MegaMek / megameklab

MegaMekLab is a BattleTech unit modification program. It allows creating and modifying all unit types available in MegaMek from Support Vehicles up to WarShips. It also allows printing record sheets for single or multiple units.
http://www.megamek.org
86 stars 130 forks source link

Array Index Error when changing Squad Size #72

Closed HammerGS closed 7 years ago

HammerGS commented 7 years ago

Need to create a WoB version of the Nighthawk Mk XXI armor, if I load the current version in MML, it loads with 4, as soon as I change the squad size to 6 it throughs an ArrayIndexOutofBoundsException

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 5 at megamek.common.Entity.initializeInternal(Entity.java:2858) at megamek.common.Infantry.initializeInternal(Infantry.java:629) at megamek.common.BattleArmor.autoSetInternal(BattleArmor.java:757) at megameklab.com.ui.BattleArmor.tabs.StructureTab.stateChanged(StructureTab.java:1230)

neoancient commented 7 years ago

See #77 Fixed in 9ede598