Update selectedConfiguration of Rocket after loadFromRocket

This commit is contained in:
SiboVG 2022-06-28 00:46:43 +02:00
parent bfb0644c7b
commit 00e77dd37b

View File

@ -390,10 +390,12 @@ public class Rocket extends ComponentAssembly {
this.stageMap = r.stageMap;
// these flight configurations need to reference the _this_ Rocket:
this.configSet.reset();
this.configSet.setDefault(new FlightConfiguration(this));
for (FlightConfigurationId key : r.configSet.map.keySet()) {
this.configSet.set(key, new FlightConfiguration(this, key));
}
this.selectedConfiguration = this.configSet.get(r.getSelectedConfiguration().getId());
this.perfectFinish = r.perfectFinish;