summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index 7aa9b5c2c8..b4a267f3c6 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -820,20 +820,20 @@ int prompt_invent_item( const char *prompt,
NULL,
&items );
+
+ need_getch = false;
+
+ // Don't redraw if we're just going to display another listing
+ need_redraw = (keyin != '?' && keyin != '*');
+ need_prompt = need_redraw;
+
if (items.size())
{
if (count)
*count = items[0].quantity;
redraw_screen();
mesclr( true );
- return letter_to_index( keyin );
}
-
- need_getch = false;
-
- // Don't redraw if we're just going to display another listing
- need_redraw = (keyin != '?' && keyin != '*');
- need_prompt = need_redraw;
}
else if (count != NULL && isdigit( keyin ))
{