diff options
-rw-r--r-- | engines/scumm/script.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/scumm/script.cpp b/engines/scumm/script.cpp index ab365e7c87..1d0fca7b37 100644 --- a/engines/scumm/script.cpp +++ b/engines/scumm/script.cpp @@ -336,7 +336,8 @@ void ScummEngine::runScriptNested(int script) { getScriptEntryPoint(); executeScript(); - vm.numNestedScripts--; + if (vm.numNestedScripts != 0) + vm.numNestedScripts--; if (nest->number != 0xFF) { // Try to resume the script which called us, if its status has not changed |