DIRECTOR: set currentChannelId to 0 for script channel scripts.

This commit is contained in:
ysj1173886760 2021-07-04 22:51:28 +08:00 committed by Eugene Sandulenko
parent 13f5460ca4
commit 111726031d

View File

@ -171,9 +171,9 @@ void Movie::queueFrameEvent(LEvent event, int eventId) {
return;
if (event == kEventEnterFrame && script->_eventHandlers.contains(kEventGeneric)) {
_eventQueue.push(LingoEvent(kEventGeneric, eventId, kScoreScript, scriptId, false));
_eventQueue.push(LingoEvent(kEventGeneric, eventId, kScoreScript, scriptId, false, 0));
} else if (script->_eventHandlers.contains(event)) {
_eventQueue.push(LingoEvent(event, eventId, kScoreScript, scriptId, false));
_eventQueue.push(LingoEvent(event, eventId, kScoreScript, scriptId, false, 0));
}
}