changeset 1570:a4a827ff5c95

Слияние
author Ritor1
date Mon, 02 Sep 2013 18:49:26 +0600
parents 5cc08e71a308 (diff) 948191fca433 (current diff)
children ef20d4608b1a
files
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/UI/UIGuilds.cpp	Mon Sep 02 17:39:31 2013 +0600
+++ b/UI/UIGuilds.cpp	Mon Sep 02 18:49:26 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)