aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2009-10-14 22:40:43 +0000
committerWillem Jan Palenstijn2009-10-14 22:40:43 +0000
commit984527a479b29b31cc4065eb70723d194d656530 (patch)
tree883caab1c464a1b0d5e0d22371e94a68418e2128 /engines/sci
parent6a2985ba08fc030d93d625615d7b1b5604fbc98c (diff)
downloadscummvm-rg350-984527a479b29b31cc4065eb70723d194d656530.tar.gz
scummvm-rg350-984527a479b29b31cc4065eb70723d194d656530.tar.bz2
scummvm-rg350-984527a479b29b31cc4065eb70723d194d656530.zip
SCI: Fix build with VM_DEBUG_SEND enabled
svn-id: r45096
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/vm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp
index 2fd81b4b40..f1679ae7b5 100644
--- a/engines/sci/engine/vm.cpp
+++ b/engines/sci/engine/vm.cpp
@@ -303,7 +303,7 @@ ExecStack *send_selector(EngineState *s, reg_t send_obj, reg_t work_obj, StackPt
}
#ifdef VM_DEBUG_SEND
- printf("Send to %04x:%04x, selector %04x (%s):", PRINT_REG(send_obj), selector, s->_selectorNames[selector].c_str());
+ printf("Send to %04x:%04x, selector %04x (%s):", PRINT_REG(send_obj), selector, ((SciEngine*)g_engine)->getKernel()->getSelectorName(selector).c_str());
#endif // VM_DEBUG_SEND
ObjVarRef varp;
@@ -357,7 +357,7 @@ ExecStack *send_selector(EngineState *s, reg_t send_obj, reg_t work_obj, StackPt
#ifdef VM_DEBUG_SEND
printf("Funcselector(");
for (int i = 0; i < argc; i++) {
- printf(PREG, PRINT_REG(argp[i+1]));
+ printf("%04x:%04x", PRINT_REG(argp[i+1]));
if (i + 1 < argc)
printf(", ");
}