aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorAdrian Frühwirth2018-05-06 11:19:38 +0200
committerAdrian Frühwirth2018-05-06 11:19:41 +0200
commitc3f43d0f88fce21fda1e1165a7c25ec84fe1b535 (patch)
tree61c7e4c86f92ec2f04498515e49ce15726b21d60 /engines
parent7f85a988c02272919924eba67afa8d127ed87dca (diff)
downloadscummvm-rg350-c3f43d0f88fce21fda1e1165a7c25ec84fe1b535.tar.gz
scummvm-rg350-c3f43d0f88fce21fda1e1165a7c25ec84fe1b535.tar.bz2
scummvm-rg350-c3f43d0f88fce21fda1e1165a7c25ec84fe1b535.zip
BLADERUNNER: Fix typo/bug in handleMouseAction()
This was introduced when the SceneObjectOffset enum was introduced in commit 7090841ccc43c64d5a1d9058071ebccaf6b52fc2.
Diffstat (limited to 'engines')
-rw-r--r--engines/bladerunner/bladerunner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/bladerunner/bladerunner.cpp b/engines/bladerunner/bladerunner.cpp
index dac8e6dd78..e3324bd877 100644
--- a/engines/bladerunner/bladerunner.cpp
+++ b/engines/bladerunner/bladerunner.cpp
@@ -1153,7 +1153,7 @@ void BladeRunnerEngine::handleMouseAction(int x, int y, bool mainButton, bool bu
int exitIndex = _scene->_exits->getRegionAtXY(x, y);
int regionIndex = _scene->_regions->getRegionAtXY(x, y);
- if ((sceneObjectId < kSceneObjectOffsetActors || sceneObjectId >= kSceneObjectOffsetActors) && exitIndex >= 0) {
+ if ((sceneObjectId < kSceneObjectOffsetActors || sceneObjectId >= kSceneObjectOffsetItems) && exitIndex >= 0) {
handleMouseClickExit(exitIndex, x, y, buttonDown);
} else if (regionIndex >= 0) {
handleMouseClickRegion(regionIndex, x, y, buttonDown);