diff options
Diffstat (limited to 'engines/parallaction/exec.cpp')
-rw-r--r-- | engines/parallaction/exec.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/parallaction/exec.cpp b/engines/parallaction/exec.cpp index 7a4208e3c3..0d5215cd9a 100644 --- a/engines/parallaction/exec.cpp +++ b/engines/parallaction/exec.cpp @@ -37,18 +37,18 @@ void ProgramExec::runScript(ProgramPtr script, AnimationPtr a) { _ctxt._suspend = false; _ctxt._modCounter = _modCounter; - InstructionList::iterator inst; + InstructionPtr inst; for ( ; (a->_flags & kFlagsActing) ; ) { - inst = _ctxt._ip; + inst = script->_instructions[_ctxt._ip]; _ctxt._inst = inst; ++_ctxt._ip; - debugC(9, kDebugExec, "inst [%02i] %s\n", (*inst)->_index, _instructionNames[(*inst)->_index - 1]); + debugC(9, kDebugExec, "inst [%02i] %s\n", inst->_index, _instructionNames[inst->_index - 1]); script->_status = kProgramRunning; - (*_opcodes[(*inst)->_index])(_ctxt); + (*_opcodes[inst->_index])(_ctxt); if (_ctxt._suspend) break; |