Changed windowId to object hash.
[VesselSimulator.git] / KerbalEngineer / Flight / Sections / SectionEditor.cs
blob:a/KerbalEngineer/Flight/Sections/SectionEditor.cs -> blob:b/KerbalEngineer/Flight/Sections/SectionEditor.cs
--- a/KerbalEngineer/Flight/Sections/SectionEditor.cs
+++ b/KerbalEngineer/Flight/Sections/SectionEditor.cs
@@ -41,8 +41,7 @@
 

         #region Fields

 

-        private readonly int windowId = new Guid().GetHashCode();

-

+        private int windowId;

         private Vector2 scrollPositionAvailable;

         private Vector2 scrollPositionInstalled;

         private ReadoutCategory selectedCategory = ReadoutCategory.Orbital;

@@ -57,6 +56,7 @@
         /// </summary>

         private void Start()

         {

+            this.windowId = this.GetHashCode();

             this.InitialiseStyles();

             RenderingManager.AddToPostDrawQueue(0, this.Draw);

         }