Limit vm.numNestedScripts to positive value, when subtracting slot in runScriptNested(). Fixes restart, after ending sequence in freddi4
svn-id: r23153
This commit is contained in:
parent
7675b3546d
commit
b81b9ac124
1 changed files with 2 additions and 1 deletions
|
@ -336,6 +336,7 @@ void ScummEngine::runScriptNested(int script) {
|
||||||
getScriptEntryPoint();
|
getScriptEntryPoint();
|
||||||
executeScript();
|
executeScript();
|
||||||
|
|
||||||
|
if (vm.numNestedScripts != 0)
|
||||||
vm.numNestedScripts--;
|
vm.numNestedScripts--;
|
||||||
|
|
||||||
if (nest->number != 0xFF) {
|
if (nest->number != 0xFF) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue