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

 #region Using Directives

 

+using System;

 using System.Collections.Generic;

 

 using KerbalEngineer.Extensions;

@@ -47,9 +48,10 @@
 

         #region Fields

 

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

+

         private int numberOfStackSections;

         private bool resizeRequested;

-        private int windowId;

         private Rect windowPosition = new Rect(Screen.width - 275.0f, 50.0f, 250.0f, 0);

 

         #endregion

@@ -76,7 +78,6 @@
         /// </summary>

         private void Start()

         {

-            this.windowId = this.GetHashCode();

             this.InitialiseStyles();

             this.Load();