aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debug.cpp3
-rw-r--r--script.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/debug.cpp b/debug.cpp
index 70c8cc7490..91bdf24f4d 100644
--- a/debug.cpp
+++ b/debug.cpp
@@ -72,7 +72,8 @@ bool ScummDebugger::do_command() {
"(a)ctor [actornum] -> show actor information\n"
"(r)oom roomnum -> load room\n"
"(s)cripts -> show running scripts\n"
- "(b)oxes -> list and draw boxen\n"
+ "(b)oxes -> list and draw boxen\n"
+ "(w)atch [varnum] -> set a variable watch. 0 means all variables.\n"
"(e)xit -> exit game\n"
);
return true;
diff --git a/script.cpp b/script.cpp
index 4cb858f490..b6e3a9f02a 100644
--- a/script.cpp
+++ b/script.cpp
@@ -335,7 +335,7 @@ void Scumm::writeVar(uint var, int value) {
_vars[var] = value;
if ((_varwatch == (int)var) || (_varwatch == 0))
- printf("vars[%d] = %d (via script %d)\n", var, value, &vm.slot[_currentScript].number);
+ printf("vars[%d] = %d (via script %d)\n", var, value, vm.slot[_currentScript].number);
return;
}