From 9bffdfe9d592b6947b3a96a8ce2126fb2c23b0bb Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 22 Sep 2019 11:42:22 -0700 Subject: XEEN: Fix clicking on monster names in combat to change target --- engines/xeen/dialogs/dialogs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/xeen') diff --git a/engines/xeen/dialogs/dialogs.cpp b/engines/xeen/dialogs/dialogs.cpp index 88fed8dfd5..fc75daf66c 100644 --- a/engines/xeen/dialogs/dialogs.cpp +++ b/engines/xeen/dialogs/dialogs.cpp @@ -85,7 +85,7 @@ bool ButtonContainer::checkEvents(XeenEngine *vm) { // Check whether any button is selected for (uint i = 0; i < _buttons.size(); ++i) { - if (_buttons[i]._bounds.contains(pt)) { + if (_buttons[i]._bounds.contains(pt) && _buttons[i]._value) { events.debounceMouse(); _buttonValue = _buttons[i]._value; -- cgit v1.2.3