aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/lingo.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2017-02-17 18:40:08 +0100
committerEugene Sandulenko2017-02-17 18:40:08 +0100
commitc5295a1e03c4fc917d87341918a515594fe89ba2 (patch)
tree5c48fcc220435b0c69b0ec44526cd0d72c657fc9 /engines/director/lingo/lingo.cpp
parente48dd540cc85823f8e33ad2195eef691f6515903 (diff)
downloadscummvm-rg350-c5295a1e03c4fc917d87341918a515594fe89ba2.tar.gz
scummvm-rg350-c5295a1e03c4fc917d87341918a515594fe89ba2.tar.bz2
scummvm-rg350-c5295a1e03c4fc917d87341918a515594fe89ba2.zip
DIRECTOR: Fix script references for D3 (now for real)
Diffstat (limited to 'engines/director/lingo/lingo.cpp')
-rw-r--r--engines/director/lingo/lingo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp
index 7639e6a607..a37b66f360 100644
--- a/engines/director/lingo/lingo.cpp
+++ b/engines/director/lingo/lingo.cpp
@@ -304,8 +304,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 + 1)) {
- executeScript(st, entityId + 1); // D3 list of scripts.
+ } else if (_scripts[st].contains(entityId)) {
+ executeScript(st, entityId); // D3 list of scripts.
} else {
debugC(8, kDebugLingoExec, "STUB: processEvent(%s) for %d", _eventHandlerTypes[event], entityId);
}