aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarisa-Chan2014-07-12 21:39:02 +0000
committerMarisa-Chan2014-07-12 21:39:02 +0000
commitbc4b0b5bf6145be02071410e044c9f27040c856b (patch)
treef977a3fb39ee8fcfe88bf8f781bde53830a7f1bd
parent9dd9bfce808cacb90bdea1ee7cc371e698c1eca9 (diff)
downloadscummvm-rg350-bc4b0b5bf6145be02071410e044c9f27040c856b.tar.gz
scummvm-rg350-bc4b0b5bf6145be02071410e044c9f27040c856b.tar.bz2
scummvm-rg350-bc4b0b5bf6145be02071410e044c9f27040c856b.zip
ZVISION: Implement code for getControl
-rw-r--r--engines/zvision/scripting/script_manager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/zvision/scripting/script_manager.cpp b/engines/zvision/scripting/script_manager.cpp
index 7c124b6eca..25fa13866a 100644
--- a/engines/zvision/scripting/script_manager.cpp
+++ b/engines/zvision/scripting/script_manager.cpp
@@ -351,7 +351,9 @@ void ScriptManager::unsetStateFlag(uint32 key, uint value) {
}
Control *ScriptManager::getControl(uint32 key) {
-
+ for (ControlList::iterator iter = _activeControls->begin(); iter != _activeControls->end(); ++iter)
+ if ((*iter)->getKey() == key)
+ return *iter;
return nullptr;
}