aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision
diff options
context:
space:
mode:
authorRichieSams2013-09-15 14:45:02 -0500
committerRichieSams2013-09-15 15:00:57 -0500
commit5cd1d2d1c2d9fc754450f548cff9aa8afaffd975 (patch)
tree900f5364f3b612f83bafa5a29b63b0d4b52a638e /engines/zvision
parent6ee253a4d8dce2f8c45f8d8256b49505db9eff4e (diff)
downloadscummvm-rg350-5cd1d2d1c2d9fc754450f548cff9aa8afaffd975.tar.gz
scummvm-rg350-5cd1d2d1c2d9fc754450f548cff9aa8afaffd975.tar.bz2
scummvm-rg350-5cd1d2d1c2d9fc754450f548cff9aa8afaffd975.zip
ZVISION: Ensure getControl always returns something
Diffstat (limited to 'engines/zvision')
-rw-r--r--engines/zvision/script_manager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/zvision/script_manager.cpp b/engines/zvision/script_manager.cpp
index 3126aee8bb..1acbcdfcf2 100644
--- a/engines/zvision/script_manager.cpp
+++ b/engines/zvision/script_manager.cpp
@@ -235,6 +235,8 @@ Control *ScriptManager::getControl(uint32 key) {
return (*iter);
}
}
+
+ return nullptr;
}
void ScriptManager::enableControl(uint32 key) {