diff options
author | Paul Gilbert | 2015-07-21 08:12:04 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-07-21 08:12:04 -0400 |
commit | 959c4eceda2b2f4417e5d24ab7eccadaa30de77d (patch) | |
tree | e41845f0eadbd2923c1df930cb29f20fbdf83d67 /engines | |
parent | a28d34b7b988834dfb45e2e3a8027f2dd69983df (diff) | |
download | scummvm-rg350-959c4eceda2b2f4417e5d24ab7eccadaa30de77d.tar.gz scummvm-rg350-959c4eceda2b2f4417e5d24ab7eccadaa30de77d.tar.bz2 scummvm-rg350-959c4eceda2b2f4417e5d24ab7eccadaa30de77d.zip |
SHERLOCK: RT: Fix clicking on Exit button in Lab scene
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sherlock/tattoo/widget_lab.cpp | 3 |
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 { |