SCI: Fixed a bug when loading some saved games (sometimes, the execution stack wasn't cleared properly when loading and you couldn't save or restore)
svn-id: r51140
This commit is contained in:
parent
a01152a3ba
commit
8eca9d6acb
3 changed files with 4 additions and 4 deletions
|
@ -934,9 +934,7 @@ void run_vm(EngineState *s) {
|
|||
if (!local_script)
|
||||
error("run_vm(): program counter gone astray (local_script pointer is null)");
|
||||
|
||||
// TODO: Revise this
|
||||
if (s->abortScriptProcessing != kAbortLoadGame)
|
||||
s->executionStackBase = s->_executionStack.size() - 1;
|
||||
s->executionStackBase = s->_executionStack.size() - 1;
|
||||
|
||||
s->variablesSegment[VAR_TEMP] = s->variablesSegment[VAR_PARAM] = s->_segMan->findSegmentByType(SEG_TYPE_STACK);
|
||||
s->variablesBase[VAR_TEMP] = s->variablesBase[VAR_PARAM] = s->stack_base;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue