aboutsummaryrefslogtreecommitdiff
path: root/saga
diff options
context:
space:
mode:
authorEugene Sandulenko2005-01-21 23:35:33 +0000
committerEugene Sandulenko2005-01-21 23:35:33 +0000
commit1e07013f7f7b62247ce3d6af8f5d7dd09ea5c303 (patch)
tree7138586ad0a35d66a90b75fe2612ae9619b539c1 /saga
parent899e476f014b608768b85af4f819268f32f9f385 (diff)
downloadscummvm-rg350-1e07013f7f7b62247ce3d6af8f5d7dd09ea5c303.tar.gz
scummvm-rg350-1e07013f7f7b62247ce3d6af8f5d7dd09ea5c303.tar.bz2
scummvm-rg350-1e07013f7f7b62247ce3d6af8f5d7dd09ea5c303.zip
Fix portability
svn-id: r16608
Diffstat (limited to 'saga')
-rw-r--r--saga/sthread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/saga/sthread.cpp b/saga/sthread.cpp
index ab1a475a25..029841dac5 100644
--- a/saga/sthread.cpp
+++ b/saga/sthread.cpp
@@ -333,7 +333,7 @@ void Script::runThread(ScriptThread *thread, uint instructionLimit) {
_vm->_console->DebugPrintf(S_WARN_PREFIX "%X: Script function %d failed.\n", thread->_instructionOffset, scriptFunctionReturnValue);
}
- if (scriptFunction == SF_gotoScene) { // SF_gotoScene
+ if (functionNumber == 16) { // SF_gotoScene
instructionCount = instructionLimit; // break the loop
break;
}