aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo/widget_lab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sherlock/tattoo/widget_lab.cpp')
-rw-r--r--engines/sherlock/tattoo/widget_lab.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sherlock/tattoo/widget_lab.cpp b/engines/sherlock/tattoo/widget_lab.cpp
index 2d4a4dc2b4..6ba5dadc7b 100644
--- a/engines/sherlock/tattoo/widget_lab.cpp
+++ b/engines/sherlock/tattoo/widget_lab.cpp
@@ -108,7 +108,8 @@ void WidgetLab::handleEvents() {
scene.toggleObject(_labObject->_use[idx]._names[nameNum]);
}
}
- } else if (ui._bgShape->_name.compareToIgnoreCase("Exit")) {
+ } else if (!ui._bgShape->_name.compareToIgnoreCase("Exit")) {
+ // Eexecut the Exit button's script, which will leave the scene
ui.lookAtObject();
}
} else {