diff options
-rw-r--r-- | saga/sthread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/saga/sthread.cpp b/saga/sthread.cpp index 1354d2c0b9..244546f29e 100644 --- a/saga/sthread.cpp +++ b/saga/sthread.cpp @@ -337,7 +337,7 @@ bool Script::runThread(ScriptThread *thread, uint instructionLimit) { scriptFunction = _scriptFunctionsList[functionNumber].scriptFunction; (this->*scriptFunction)(thread, argumentsCount); - if (scriptFunction == sfScriptGotoScene) { + if (scriptFunction == &Saga::Script::sfScriptGotoScene) { //if (functionNumber == 16) { // sfScriptGotoScene return true; // cause abortAllThreads called and _this_ thread destroyed } |