EngineSim objects are now pooled.
[VesselSimulator.git] / KerbalEngineer / VesselSimulator / Simulation.cs
blob:a/KerbalEngineer/VesselSimulator/Simulation.cs -> blob:b/KerbalEngineer/VesselSimulator/Simulation.cs
--- a/KerbalEngineer/VesselSimulator/Simulation.cs
+++ b/KerbalEngineer/VesselSimulator/Simulation.cs
@@ -144,6 +144,8 @@
             activeEngines.Clear();
             drainingResources.Clear();
 
+            EngineSim.ReleaseAll();
+
             // A dictionary for fast lookup of Part->PartSim during the preparation phase
             partSimLookup.Clear();