Merge pull request #1216 from JoePfeiffer/fix-1184

Create CalcMap based on all components, not just active ones
This commit is contained in:
SiboVG 2022-03-06 02:39:01 +01:00 committed by GitHub
commit b2eb62f009
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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