diff options
Diffstat (limited to 'engines')
-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; } |