diff options
-rw-r--r-- | saga/sthread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/saga/sthread.cpp b/saga/sthread.cpp index 19cbbdb91f..24815040d5 100644 --- a/saga/sthread.cpp +++ b/saga/sthread.cpp @@ -347,12 +347,12 @@ bool Script::runThread(ScriptThread *thread, uint instructionLimit) { (this->*scriptFunction)(thread, argumentsCount); - thread->_stackTopIndex = checkStackTopIndex; - if (scriptFunction == &Saga::Script::sfScriptGotoScene) { return true; // cause abortAllThreads called and _this_ thread destroyed } + thread->_stackTopIndex = checkStackTopIndex; + if (operandChar == opCcall) {// CALL function thread->push(thread->_returnValue); } |