diff options
Diffstat (limited to 'engines/director/lingo/lingo.cpp')
-rw-r--r-- | engines/director/lingo/lingo.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index b75dc0bd9f..01b6207566 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -273,8 +273,12 @@ ScriptType Lingo::event2script(LEvent ev) { } Symbol *Lingo::getHandler(Common::String &name) { - if (!_eventHandlerTypeIds.contains(name)) + if (!_eventHandlerTypeIds.contains(name)) { + if (_builtins.contains(name)) + return _builtins[name]; + return NULL; + } uint32 entityIndex = ENTITY_INDEX(_eventHandlerTypeIds[name], _currentEntityId); if (!_handlers.contains(entityIndex)) |