changeset 1614:85a099ea7975

m
author Ritor1
date Sun, 15 Sep 2013 00:46:00 +0600
parents aaefada3e1d8
children 89dec2be255f 01c04ff9b7a5
files mm7_5.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mm7_5.cpp	Sun Sep 15 00:41:51 2013 +0600
+++ b/mm7_5.cpp	Sun Sep 15 00:46:00 2013 +0600
@@ -4966,12 +4966,12 @@
   if (no_rightlick_in_inventory)
     return;
 
+  pMouse->GetCursorPos(&a2);
   if (a2.x <= 13 || a2.x >= 462)
     return;
 
   auto player = pPlayers[uActiveCharacter];
 
-  pMouse->GetCursorPos(&a2);
   int item_pid = pRenderer->pActiveZBuffer[a2.x + pSRZBufferLineOffsets[a2.y]] & 0xFFFF;
   //pMouse->GetClickPos(&pX, &pY);
   if (!item_pid)