Create CalcMap based on all components, not just active ones
This commit is contained in:
parent
930881dae6
commit
4cef774c3d
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user