Optimised the BuildOverlayPartInfo class.
[VesselSimulator.git] / KerbalEngineer / Helpers / Pool.cs
blob:a/KerbalEngineer/Helpers/Pool.cs -> blob:b/KerbalEngineer/Helpers/Pool.cs
--- a/KerbalEngineer/Helpers/Pool.cs
+++ b/KerbalEngineer/Helpers/Pool.cs
@@ -41,6 +41,14 @@
             }
         }
 
+        public static void Release(List<T> objList)
+        {
+            for (int i = 0; i < objList.Count; ++i)
+            {
+                Release(objList[i]);
+            }
+        }
+
         public static void ReleaseAll()
         {
             for (int i = 0; i < inUse.Count; ++i)