From de365eb0c665ae2ecca94cbe709690c5af897186 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 8 Apr 2018 18:43:42 -0400 Subject: XEEN: Allow deselecting items in Items dialog --- engines/xeen/dialogs/dialogs_items.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'engines') 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: -- cgit v1.2.3