diff options
Diffstat (limited to 'saga/scene.cpp')
-rw-r--r-- | saga/scene.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/saga/scene.cpp b/saga/scene.cpp index f2ee344099..35cfa99066 100644 --- a/saga/scene.cpp +++ b/saga/scene.cpp @@ -949,7 +949,17 @@ int Scene::defaultScene(int param, R_SCENE_INFO *scene_info) { _vm->_anim->play(0, 0); if (_desc.startScriptNum > 0) { + R_SCRIPT_THREAD *_startScriptThread; + debug(0, "Starting start script #%d", _desc.startScriptNum); + + _startScriptThread= STHREAD_Create(); + if (_startScriptThread == NULL) { + _vm->_console->print("Thread creation failed."); + break; + } + STHREAD_Execute(_startScriptThread, _desc.startScriptNum); + STHREAD_completeThread(); } debug(0, "Scene started"); |