diff options
author | Paul Gilbert | 2019-09-22 11:42:22 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-09-22 11:42:22 -0700 |
commit | 9bffdfe9d592b6947b3a96a8ce2126fb2c23b0bb (patch) | |
tree | 28746cc1813c0eb7aabda88e0f9af8198423724e | |
parent | 8f40cb95a412a4770b3f849486dbf41c90283685 (diff) | |
download | scummvm-rg350-9bffdfe9d592b6947b3a96a8ce2126fb2c23b0bb.tar.gz scummvm-rg350-9bffdfe9d592b6947b3a96a8ce2126fb2c23b0bb.tar.bz2 scummvm-rg350-9bffdfe9d592b6947b3a96a8ce2126fb2c23b0bb.zip |
XEEN: Fix clicking on monster names in combat to change target
-rw-r--r-- | engines/xeen/dialogs/dialogs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |