aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/xeen/dialogs/dialogs_items.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/xeen/dialogs/dialogs_items.cpp b/engines/xeen/dialogs/dialogs_items.cpp
index 0ea835e121..cdb38e37b4 100644
--- a/engines/xeen/dialogs/dialogs_items.cpp
+++ b/engines/xeen/dialogs/dialogs_items.cpp
@@ -375,9 +375,12 @@ Character *ItemsDialog::execute(Character *c, ItemsMode mode) {
Common::fill(&arr[0], &arr[40], 0);
arr[itemIndex] = 15;
}
-
- redrawFlag = REDRAW_TEXT;
+ } else {
+ Common::fill(&arr[0], &arr[40], 0);
+ itemIndex = -1;
}
+
+ redrawFlag = REDRAW_TEXT;
break;
case Common::KEYCODE_a: