SCI: Got rid of EngineState::execution_stack_pos; overally, the resulting code should be even stricter in detecting invalid VM stack access (and some bugs when loading saves might be fixed now...)

svn-id: r40694
This commit is contained in:
Max Horn 2009-05-18 18:15:45 +00:00
parent b2b08cc606
commit b0c1cf52e0
12 changed files with 121 additions and 129 deletions

View file

@ -794,7 +794,7 @@ EngineState *gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) {
// Set exec stack base to zero
retval->execution_stack_base = 0;
retval->execution_stack_pos = 0;
retval->_executionStack.clear();
// Now copy all current state information
// Graphics and input state: