Changed windowId to Guid hash.
[VesselSimulator.git] / KerbalEngineer / Flight / Sections / SectionWindow.cs
blob:a/KerbalEngineer/Flight/Sections/SectionWindow.cs -> blob:b/KerbalEngineer/Flight/Sections/SectionWindow.cs
--- a/KerbalEngineer/Flight/Sections/SectionWindow.cs
+++ b/KerbalEngineer/Flight/Sections/SectionWindow.cs
@@ -19,6 +19,8 @@
 

 #region Using Directives

 

+using System;

+

 using KerbalEngineer.Extensions;

 

 using UnityEngine;

@@ -31,8 +33,9 @@
     {

         #region Fields

 

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

+

         private bool resizeRequested;

-        private int windowId;

         private Rect windowPosition;

 

         #endregion

@@ -44,7 +47,6 @@
         /// </summary>

         private void Start()

         {

-            this.windowId = this.GetHashCode();

             this.InitialiseStyles();

             RenderingManager.AddToPostDrawQueue(0, this.Draw);

         }