From 470799da7227a20139486c58abd49357177a4883 Mon Sep 17 00:00:00 2001 From: Kevin Ruland Date: Tue, 15 Dec 2015 07:32:02 -0600 Subject: [PATCH] flightConfiguration clone was creating two copies of each MotorConfiguration. --- .../rocketcomponent/FlightConfiguration.java | 42 +------------------ 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java b/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java index 79d40b4d8..92633e118 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java +++ b/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java @@ -39,9 +39,6 @@ public class FlightConfiguration implements FlightConfigurableParameter listenerList = new ArrayList(); protected class StageFlags implements Cloneable { @@ -94,8 +91,6 @@ public class FlightConfiguration implements FlightConfigurableParameter(); - for( StageFlags flags : this.stages.values()){ - clone.stages.put( flags.stage.getStageNumber(), flags.clone()); - } - for( MotorConfiguration mi : this.motors.values()){ - clone.motors.put( mi.getID(), mi.clone()); - } clone.cachedBounds = this.cachedBounds.clone(); clone.modID = this.modID; clone.boundsModID = -1;