Changed windowId to object hash.
[VesselSimulator.git] / KerbalEngineer / Flight / ActionMenu.cs
blob:a/KerbalEngineer/Flight/ActionMenu.cs -> blob:b/KerbalEngineer/Flight/ActionMenu.cs
--- a/KerbalEngineer/Flight/ActionMenu.cs
+++ b/KerbalEngineer/Flight/ActionMenu.cs
@@ -17,9 +17,8 @@
 //     along with this program.  If not, see <http://www.gnu.org/licenses/>.

 // 

 

-#region Using Directives

-

-using System;

+#region

+

 using System.Collections.Generic;

 

 using KerbalEngineer.Flight.Sections;

@@ -45,11 +44,10 @@
 

         #region Fields

 

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

-

         private bool isOpen = true;

         private int numberOfSections;

         private float scrollPercent;

+        private int windowId;

         private Rect windowPosition = new Rect((Screen.width * 0.25f) - 100.0f, 0, 200.0f, 0);

 

         #endregion

@@ -61,6 +59,7 @@
         /// </summary>

         private void Start()

         {

+            this.windowId = this.GetHashCode();

             this.InitialiseStyles();

             this.Load();

             RenderingManager.AddToPostDrawQueue(0, this.Draw);