diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/script_manager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/zvision/script_manager.cpp b/engines/zvision/script_manager.cpp index 2e57c18a3e..7fcade22c1 100644 --- a/engines/zvision/script_manager.cpp +++ b/engines/zvision/script_manager.cpp @@ -118,7 +118,10 @@ void ScriptManager::checkPuzzleCriteria() { } uint ScriptManager::getStateValue(uint32 key) { - return _globalState[key]; + if (_globalState.contains(key)) + return _globalState[key]; + else + return 0; } void ScriptManager::setStateValue(uint32 key, uint value) { |