diff options
author | Filippos Karapetis | 2009-07-11 06:19:29 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-07-11 06:19:29 +0000 |
commit | 763c6c8ca1fc11acb4206ebb7859e1e904c0454b (patch) | |
tree | 012a2eeff58b036ffcc8fd1a098eb24f307b05cc /engines/sci/engine/scriptdebug.cpp | |
parent | 2c96ca84f36d42353bed7f8830efd3822e4dde85 (diff) | |
download | scummvm-rg350-763c6c8ca1fc11acb4206ebb7859e1e904c0454b.tar.gz scummvm-rg350-763c6c8ca1fc11acb4206ebb7859e1e904c0454b.tar.bz2 scummvm-rg350-763c6c8ca1fc11acb4206ebb7859e1e904c0454b.zip |
Fixed regression in the script parser from commit 42260
svn-id: r42371
Diffstat (limited to 'engines/sci/engine/scriptdebug.cpp')
-rw-r--r-- | engines/sci/engine/scriptdebug.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index 9f69d21e2a..7f5f201079 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -235,11 +235,11 @@ reg_t disassemble(EngineState *s, reg_t pos, int print_bw_tag, int print_bytecod if (pos == scriptState.xs->addr.pc) { // Extra information if debugging the current opcode if (opcode == op_callk) { - int stackframe = (scr[pos.offset + 2] >> 1) + (scriptState.restadjust); + int stackframe = (scr[pos.offset + 2] >> 1) + (scriptState.restAdjust); int argc = ((scriptState.xs->sp)[- stackframe - 1]).offset; if (!s->_kernel->hasOldScriptHeader()) - argc += (scriptState.restadjust); + argc += (scriptState.restAdjust); printf(" Kernel params: ("); @@ -250,7 +250,7 @@ reg_t disassemble(EngineState *s, reg_t pos, int print_bw_tag, int print_bytecod } printf(")\n"); } else if ((opcode == op_send) || (opcode == op_self)) { - int restmod = scriptState.restadjust; + int restmod = scriptState.restAdjust; int stackframe = (scr[pos.offset + 1] >> 1) + restmod; reg_t *sb = scriptState.xs->sp; uint16 selector; |