Create CalcMap based on all components, not just active ones

This commit is contained in:
JoePfeiffer 2022-03-03 10:55:40 -07:00
parent 930881dae6
commit 4cef774c3d

View File

@ -852,8 +852,7 @@ public class BarrowmanCalculator extends AbstractAerodynamicCalculator {
private void buildCalcMap(FlightConfiguration configuration) { private void buildCalcMap(FlightConfiguration configuration) {
calcMap = new HashMap<>(); calcMap = new HashMap<>();
// because this is not a per-instance iteration... this usage of 'getActiveComponents' is probably fine. for (RocketComponent comp: configuration.getAllComponents()) {
for (RocketComponent comp: configuration.getActiveComponents()) {
if (!comp.isAerodynamic()) if (!comp.isAerodynamic())
continue; continue;