diff GUIWindow.cpp @ 1429:c7489dd19f88

BuildingType_Tavern and CastSpellInfo_PushCastSpellInfo fix
author Ritor1
date Thu, 01 Aug 2013 17:51:16 +0600
parents 2423bc2af692
children 71a2cf416478
line wrap: on
line diff
--- a/GUIWindow.cpp	Thu Aug 01 09:26:13 2013 +0600
+++ b/GUIWindow.cpp	Thu Aug 01 17:51:16 2013 +0600
@@ -393,19 +393,10 @@
 GUIButton *GUIWindow::GetControl(unsigned int uID)
 {
   GUIButton *result; // eax@1
-  unsigned int v3; // ecx@1
 
   result = this->pControlsHead;
-  v3 = uID;
-  if ( (signed int)uID > 0 )
-  {
-    do
-    {
-      result = result->pNext;
-      --v3;
-    }
-    while ( v3 );
-  }
+  for ( uID; uID; --uID )
+    result = result->pNext;
   return result;
 }
 
@@ -1106,7 +1097,7 @@
           JailDialog();
           break;
         default:
-          __debugbreak();//New BuildingType
+          //__debugbreak();//New BuildingType (if enter Boat)
           break;
       }
   }