aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2018-04-08 18:43:42 -0400
committerPaul Gilbert2018-04-08 18:43:42 -0400
commitde365eb0c665ae2ecca94cbe709690c5af897186 (patch)
tree65e2544df832e5a2257e2ff4ad5ed18791aa5480 /engines
parentf7a8566ac19acb7d8a0bcaa8c5896ad0a57d12dd (diff)
downloadscummvm-rg350-de365eb0c665ae2ecca94cbe709690c5af897186.tar.gz
scummvm-rg350-de365eb0c665ae2ecca94cbe709690c5af897186.tar.bz2
scummvm-rg350-de365eb0c665ae2ecca94cbe709690c5af897186.zip
XEEN: Allow deselecting items in Items dialog
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: