# HG changeset patch # User Ritor1 # Date 1378126158 -21600 # Node ID 5cc08e71a3082a60d86daa5a97068ad2a7df84a8 # Parent 5e601a07010db46c833e6573def64f2b86d20d94 m diff -r 5e601a07010d -r 5cc08e71a308 UI/UIGuilds.cpp --- 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)