Commit 6ee0553d authored by CJGutz's avatar CJGutz
Browse files

fix: listview with observable list now update correct with units

parent c9b672a3
Pipeline #183911 passed with stages
in 45 seconds
......@@ -231,7 +231,8 @@ public class BattleController implements Initializable {
editArmyButtons[armyNumber].setDisable(simulation.getOriginalArmyByNumber(armyNumber) == null);
armyUnitListViews[armyNumber].setItems((ObservableList<Unit>) army.getAllUnits());
armyUnitListViews[armyNumber].getItems().clear();
armyUnitListViews[armyNumber].getItems().addAll(army.getAllUnits());
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment