diff options
author | Max Horn | 2010-05-26 16:30:10 +0000 |
---|---|---|
committer | Max Horn | 2010-05-26 16:30:10 +0000 |
commit | 0197e9f6a19738054a4b847e3217cd3794ef3ce3 (patch) | |
tree | c73642ea32bd9ce4ae2699e210446933ce94d984 /engines/sci/engine/scriptdebug.cpp | |
parent | 017507ffa6a774ea1df4d74b8431155540f76244 (diff) | |
download | scummvm-rg350-0197e9f6a19738054a4b847e3217cd3794ef3ce3.tar.gz scummvm-rg350-0197e9f6a19738054a4b847e3217cd3794ef3ce3.tar.bz2 scummvm-rg350-0197e9f6a19738054a4b847e3217cd3794ef3ce3.zip |
SCI: Making various object and script related things const
svn-id: r49246
Diffstat (limited to 'engines/sci/engine/scriptdebug.cpp')
-rw-r--r-- | engines/sci/engine/scriptdebug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index 608260ec50..da8e4ee211 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -193,7 +193,7 @@ 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_pTos) || (opcode == op_sTop) || (opcode == op_pToa) || (opcode == op_aTop) || (opcode == op_dpToa) || (opcode == op_ipToa) || (opcode == op_dpTos) || (opcode == op_ipTos)) { - Object *obj = s->_segMan->getObject(scriptState.xs->objp); + const Object *obj = s->_segMan->getObject(scriptState.xs->objp); if (!obj) warning("Attempted to reference on non-object at %04x:%04x", PRINT_REG(scriptState.xs->objp)); else |