diff options
author | Marisa-Chan | 2014-07-12 21:39:02 +0000 |
---|---|---|
committer | Marisa-Chan | 2014-07-12 21:39:02 +0000 |
commit | bc4b0b5bf6145be02071410e044c9f27040c856b (patch) | |
tree | f977a3fb39ee8fcfe88bf8f781bde53830a7f1bd /engines/zvision/scripting | |
parent | 9dd9bfce808cacb90bdea1ee7cc371e698c1eca9 (diff) | |
download | scummvm-rg350-bc4b0b5bf6145be02071410e044c9f27040c856b.tar.gz scummvm-rg350-bc4b0b5bf6145be02071410e044c9f27040c856b.tar.bz2 scummvm-rg350-bc4b0b5bf6145be02071410e044c9f27040c856b.zip |
ZVISION: Implement code for getControl
Diffstat (limited to 'engines/zvision/scripting')
-rw-r--r-- | engines/zvision/scripting/script_manager.cpp | 4 |
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; } |