aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Brown2002-03-08 13:31:29 +0000
committerJames Brown2002-03-08 13:31:29 +0000
commit07bfd66c12fb6e4502f4ee7f6fc5d5416cda4d67 (patch)
tree11d13ba96fb48e56c09b5cbfc3b8af2c44dba772
parentc161197117e3212e146083086f6f0ee581062789 (diff)
downloadscummvm-rg350-07bfd66c12fb6e4502f4ee7f6fc5d5416cda4d67.tar.gz
scummvm-rg350-07bfd66c12fb6e4502f4ee7f6fc5d5416cda4d67.tar.bz2
scummvm-rg350-07bfd66c12fb6e4502f4ee7f6fc5d5416cda4d67.zip
Fixed a bug in the 'watch' debug command..
svn-id: r3686
-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;
}