diff GUIWindow.cpp @ 962:0423c40d7e88

UpdateWindows and pWindow->Release
author Ritor1
date Tue, 07 May 2013 17:32:23 +0600
parents 5a12082c803d
children c8a0f6d89c70
line wrap: on
line diff
--- a/GUIWindow.cpp	Mon May 06 17:33:40 2013 +0600
+++ b/GUIWindow.cpp	Tue May 07 17:32:23 2013 +0600
@@ -404,7 +404,7 @@
   {
     v12 = pVisibleWindowsIdxs[this->numVisibleWindows + 1];
     pVisibleWindowsIdxs[this->numVisibleWindows] = v12;
-    --*((int *)&pTexture_PCX.field_18 + 21 * v12);
+    --pWindowList[v12 - 1].numVisibleWindows;
     ++this->numVisibleWindows;
   }
   pVisibleWindowsIdxs[uNumVisibleWindows] = 0;
@@ -1720,7 +1720,7 @@
   unsigned int uNextFreeWindowID; // ebp@1
   //int *v8; // eax@1
   //GUIWindow *pWindow; // esi@4
-  int v10; // eax@4
+  //int v10; // eax@4
   unsigned int v11; // ebx@15
   NPCData *speakingNPC; // ebp@15
   int v14; // eax@20
@@ -1749,9 +1749,9 @@
   pWindow->uFrameW = uY + uHeight - 1;
   pWindow->ptr_1C = (void *)pButton;
   pWindow->Hint = (char *)a5;
-  v10 = uNumVisibleWindows;
+  //v10 = uNumVisibleWindows;
   pWindow->uFrameX = uX;
-  ++v10;
+  //++v10;
   pWindow->uFrameY = uY;
   pWindow->uFrameHeight = uHeight;
   pWindow->eWindowType = eWindowType;