diff mm7_4.cpp @ 358:4a236657a0be

GameMenuButton fix
author Ritor1
date Thu, 21 Feb 2013 17:23:53 +0600
parents bbf8efb5bfee
children b803545c1b96
line wrap: on
line diff
--- a/mm7_4.cpp	Thu Feb 21 10:07:51 2013 +0600
+++ b/mm7_4.cpp	Thu Feb 21 17:23:53 2013 +0600
@@ -9062,7 +9062,7 @@
 //----- (004B1A2D) --------------------------------------------------------
 void __cdecl sub_4B1A2D()
 {
-  Player *v0; // edi@1
+  //Player *v0; // edi@1
   POINT *v1; // esi@5
   unsigned int v2; // eax@5
   int v3; // ecx@5
@@ -9082,7 +9082,7 @@
   POINT a2; // [sp+40h] [bp-Ch]@5
   int v18; // [sp+48h] [bp-4h]@5
 
-  v0 = pPlayers[uActiveCharacter];
+  //v0 = pPlayers[uActiveCharacter];
   if ( dword_F8B198 <= 0 )
     return;
   if ( dword_F8B198 <= 4 )
@@ -9097,9 +9097,9 @@
         v18 = (v8 >> 5) + 14 * ((pMouse->GetCursorPos((POINT *)&v14)->y - 17) >> 5);
         if ( pMouse->GetCursorPos((POINT *)&v13)->x <= 13
           || pMouse->GetCursorPos((POINT *)&v12)->x >= 462
-          || (v9 = v0->GetItemIDAtInventoryIndex(&v18)) == 0 )
+          || (v9 = pPlayers[uActiveCharacter]->GetItemIDAtInventoryIndex(&v18)) == 0 )
           return;
-        v7 = (ItemGen *)&v0->pInventoryItems[v9-1];
+        v7 = (ItemGen *)&pPlayers[uActiveCharacter]->pInventoryItems[v9-1];
 LABEL_15:
         GameUI_DrawItemInfo(v7);
         return;