aboutsummaryrefslogtreecommitdiff
path: root/saga/sfuncs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'saga/sfuncs.cpp')
-rw-r--r--saga/sfuncs.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/saga/sfuncs.cpp b/saga/sfuncs.cpp
index 98ac131ae6..d58f1dadc0 100644
--- a/saga/sfuncs.cpp
+++ b/saga/sfuncs.cpp
@@ -504,7 +504,8 @@ void Script::sfScriptGotoScene(SCRIPTFUNC_PARAMS) {
sceneNumber = thread->pop();
entrance = thread->pop();
if (sceneNumber < 0) {
- //TODO: quit from game at all
+ _vm->shutDown();
+ return;
}
// This is used for latter demos where all places on world map except