aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-13 21:09:33 -0400
committerPaul Gilbert2015-07-13 21:09:33 -0400
commitc92b020284169060099e7189972be707d42fa74f (patch)
treeecb6dddaaf17aecf29b3d3016dbeb22cf59678a4 /engines/sherlock/tattoo
parent10c96babbcba734ab6bd8273d1a6ebff58018dd3 (diff)
downloadscummvm-rg350-c92b020284169060099e7189972be707d42fa74f.tar.gz
scummvm-rg350-c92b020284169060099e7189972be707d42fa74f.tar.bz2
scummvm-rg350-c92b020284169060099e7189972be707d42fa74f.zip
SHERLOCK: RT: Fix crash if clicking at very top of Verbs menu
Diffstat (limited to 'engines/sherlock/tattoo')
-rw-r--r--engines/sherlock/tattoo/widget_verbs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/tattoo/widget_verbs.cpp b/engines/sherlock/tattoo/widget_verbs.cpp
index 0d8fc627ab..3cdd1247c1 100644
--- a/engines/sherlock/tattoo/widget_verbs.cpp
+++ b/engines/sherlock/tattoo/widget_verbs.cpp
@@ -203,7 +203,7 @@ void WidgetVerbs::handleEvents() {
ui._menuMode = scene._labTableScene ? LAB_MODE : STD_MODE;
}
}
- } else if (_bounds.contains(mousePos)) {
+ } else if (_bounds.contains(mousePos) && _selector != -1) {
// Mouse is within the menu
// Erase the menu
banishWindow();