diff --git a/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java b/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java index 09c090f11..308ec86c2 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java +++ b/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java @@ -193,6 +193,10 @@ public class FlightConfiguration implements FlightConfigurableParameter getSubStages() { + List result = new LinkedList<>(); + Iterator it = iterator(false); + while (it.hasNext()) { + RocketComponent c = it.next(); + if (c instanceof AxialStage) + result.add((AxialStage) c); + } + return result; + } /** * Return the first component assembly component that this component belongs to.