From 07bfd66c12fb6e4502f4ee7f6fc5d5416cda4d67 Mon Sep 17 00:00:00 2001 From: James Brown Date: Fri, 8 Mar 2002 13:31:29 +0000 Subject: [PATCH] Fixed a bug in the 'watch' debug command.. svn-id: r3686 --- debug.cpp | 3 ++- script.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debug.cpp b/debug.cpp index 70c8cc74903..91bdf24f4d8 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 4cb858f4901..b6e3a9f02aa 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; }