diff options
author | Eugene Sandulenko | 2017-02-16 22:54:03 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-02-16 22:54:34 +0100 |
commit | c0d155db972323b87af0964f59676be091c76be6 (patch) | |
tree | ebf28688b1e35b0b719d340059091ca24dfafe9a /engines/director/lingo | |
parent | 41f097fe1ab3057f246f76936a58546b30610e8f (diff) | |
download | scummvm-rg350-c0d155db972323b87af0964f59676be091c76be6.tar.gz scummvm-rg350-c0d155db972323b87af0964f59676be091c76be6.tar.bz2 scummvm-rg350-c0d155db972323b87af0964f59676be091c76be6.zip |
DIRECTOR: Lingo: Revert D3 script addressing modification
Diffstat (limited to 'engines/director/lingo')
-rw-r--r-- | engines/director/lingo/lingo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index d90fac34c7..d3132f93e5 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -302,8 +302,8 @@ void Lingo::processEvent(LEvent event, ScriptType st, int entityId) { if (_handlers.contains(ENTITY_INDEX(event, entityId))) { call(_eventHandlerTypes[event], 0); // D4+ Events pop(); - } else if (_scripts[st].contains(entityId)) { - executeScript(st, entityId - 1); // D3 list of scripts. + } else if (_scripts[st].contains(entityId + 1)) { + executeScript(st, entityId + 1); // D3 list of scripts. } else { debugC(8, kDebugLingoExec, "STUB: processEvent(%s) for %d", _eventHandlerTypes[event], entityId); } |