Skip to content

Commit 33029a8

Browse files
committed
Engine: Continue running scripts from last position
1 parent 1536356 commit 33029a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/engine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void Engine::frame()
121121
m_breakFrame = false;
122122

123123
do {
124-
m_scriptPositions[i] = script->run();
124+
m_scriptPositions[i] = script->run(m_scriptPositions[i]);
125125
if (script->atEnd())
126126
m_scriptsToRemove.push_back(script);
127127
} while (!script->atEnd() && !m_breakFrame);

0 commit comments

Comments
 (0)