aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2017-02-12 08:50:26 +0100
committerEugene Sandulenko2017-02-12 08:51:11 +0100
commitd1a08b5145ea822c106e34043bf9b0a0be16c90d (patch)
treebf786b7aa85bab543f08474ac429fc6b471bce5d
parent23452a512df002231e36927b4238bd83d097c604 (diff)
downloadscummvm-rg350-d1a08b5145ea822c106e34043bf9b0a0be16c90d.tar.gz
scummvm-rg350-d1a08b5145ea822c106e34043bf9b0a0be16c90d.tar.bz2
scummvm-rg350-d1a08b5145ea822c106e34043bf9b0a0be16c90d.zip
DIRECTOR: Lingo: Fix D3 script execution
-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 79dfc1f2db..d90fac34c7 100644
--- a/engines/director/lingo/lingo.cpp
+++ b/engines/director/lingo/lingo.cpp
@@ -300,10 +300,10 @@ void Lingo::processEvent(LEvent event, ScriptType st, int entityId) {
error("processEvent: Unknown event %d for entity %d", event, entityId);
if (_handlers.contains(ENTITY_INDEX(event, entityId))) {
- call(_eventHandlerTypes[event], 0); //D4+ Events
+ call(_eventHandlerTypes[event], 0); // D4+ Events
pop();
} else if (_scripts[st].contains(entityId)) {
- executeScript(st, entityId + 1); //D3 list of scripts.
+ executeScript(st, entityId - 1); // D3 list of scripts.
} else {
debugC(8, kDebugLingoExec, "STUB: processEvent(%s) for %d", _eventHandlerTypes[event], entityId);
}