Skip to content

Commit

Permalink
Merge pull request #1386 from SJuliez/role-not-saving
Browse files Browse the repository at this point in the history
Fix for 1385
  • Loading branch information
neoancient authored Jan 16, 2024
2 parents bd2d954 + 47e2e8a commit 49729ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions megameklab/src/megameklab/ui/generalUnit/BasicInfoView.java
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,15 @@ public void setFromEntity(Entity en) {
if (en.getManualBV() >= 0) {
setManualBV(en.getManualBV());
}
cbRole.removeActionListener(this);
cbRole.removeAllItems();
for (UnitRole role : UnitRole.values()) {
if (role.isAvailableTo(en)) {
cbRole.addItem(role);
}
}
cbRole.setSelectedItem(en.getRole());
cbRole.addActionListener(this);

refreshFaction();
}
Expand Down

0 comments on commit 49729ec

Please sign in to comment.