diff options
Diffstat (limited to 'engines/bladerunner/script/scene_script.cpp')
-rw-r--r-- | engines/bladerunner/script/scene_script.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/bladerunner/script/scene_script.cpp b/engines/bladerunner/script/scene_script.cpp index 8cfe8b3055..14b353dcf4 100644 --- a/engines/bladerunner/script/scene_script.cpp +++ b/engines/bladerunner/script/scene_script.cpp @@ -182,7 +182,10 @@ bool SceneScript::mouseClick(int x, int y) { _inScriptCounter++; _mouseX = x; _mouseY = y; - bool result = _currentScript->MouseClick(x, y); + bool result = false; + if (_currentScript != nullptr) { + result = _currentScript->MouseClick(x, y); + } _vm->_runningActorId = -1; _inScriptCounter--; _mouseX = -1; |