diff --git a/core/src/net/sf/openrocket/document/OpenRocketDocument.java b/core/src/net/sf/openrocket/document/OpenRocketDocument.java index fdf88c742..c479005b9 100644 --- a/core/src/net/sf/openrocket/document/OpenRocketDocument.java +++ b/core/src/net/sf/openrocket/document/OpenRocketDocument.java @@ -287,7 +287,7 @@ public class OpenRocketDocument implements ComponentChangeListener { } for (Simulation s : getSimulations()) { // Assumes modifiable collection - which it is - if (s.getConfiguration().getFlightConfigurationID().equals(configId)) { + if (configId.equals(s.getConfiguration().getFlightConfigurationID())) { removeSimulation(s); } }