diff UI/UIGuilds.cpp @ 1569:5cc08e71a308

m
author Ritor1
date Mon, 02 Sep 2013 18:49:18 +0600
parents ff2118028c71
children 19f1735fca80
line wrap: on
line diff
--- a/UI/UIGuilds.cpp	Sun Sep 01 17:41:00 2013 +0600
+++ b/UI/UIGuilds.cpp	Mon Sep 02 18:49:18 2013 +0600
@@ -154,14 +154,11 @@
     if ( HouseUI_CheckIfPlayerCanInteract() )
     {
       v8 = 0;
-      v9 = 12;
-      do
+      for ( v9 = 12; v9; --v9 )
       {
         if (pParty->SpellBooksInGuilds[window_SpeakInHouse->par1C-139][v9].uItemID )
           ++v8;
-        --v9;
       }
-      while ( v9 );
       GetAsyncKeyState(17);
       statusbar_string = pGlobalTXT_LocalizationStrings[195]; //"Select the Item to Buy"
       if ( dialog_menu_id != HOUSE_DIALOGUE_SHOP_BUY_STANDARD)