From 1e07013f7f7b62247ce3d6af8f5d7dd09ea5c303 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 21 Jan 2005 23:35:33 +0000 Subject: Fix portability svn-id: r16608 --- saga/sthread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'saga') 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; } -- cgit v1.2.3