Changed windowId to Guid 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
@@ -18,6 +18,8 @@
 // 

 

 #region Using Directives

+

+using System;

 

 using KerbalEngineer.Extensions;

 using KerbalEngineer.Flight.Readouts;

@@ -39,10 +41,11 @@
 

         #region Fields

 

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

+

         private Vector2 scrollPositionAvailable;

         private Vector2 scrollPositionInstalled;

         private ReadoutCategory selectedCategory = ReadoutCategory.Orbital;

-        private int windowId;

         private Rect windowPosition;

 

         #endregion

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

         private void Start()

         {

-            this.windowId = this.GetHashCode();

             this.InitialiseStyles();

             RenderingManager.AddToPostDrawQueue(0, this.Draw);

         }