ZVISION: Implement code for getControl

This commit is contained in:
Marisa-Chan 2014-07-12 21:39:02 +00:00
parent 9dd9bfce80
commit bc4b0b5bf6

View file

@ -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;
}