diff options
author | Eugene Sandulenko | 2017-01-15 18:03:54 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-01-15 18:04:34 +0100 |
commit | 2d69d675681ca5308704c37e65b79629f14f0289 (patch) | |
tree | f4255d3123850e4190077b009536904f7816babd /engines | |
parent | 0e5ed5b502a01bee645edeb6bafba79a772aa0a8 (diff) | |
download | scummvm-rg350-2d69d675681ca5308704c37e65b79629f14f0289.tar.gz scummvm-rg350-2d69d675681ca5308704c37e65b79629f14f0289.tar.bz2 scummvm-rg350-2d69d675681ca5308704c37e65b79629f14f0289.zip |
DIRECTOR: Lingo: Fixing calling built-in symbols
Diffstat (limited to 'engines')
-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)) |