diff options
author | James Brown | 2002-03-08 13:31:29 +0000 |
---|---|---|
committer | James Brown | 2002-03-08 13:31:29 +0000 |
commit | 07bfd66c12fb6e4502f4ee7f6fc5d5416cda4d67 (patch) | |
tree | 11d13ba96fb48e56c09b5cbfc3b8af2c44dba772 | |
parent | c161197117e3212e146083086f6f0ee581062789 (diff) | |
download | scummvm-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.cpp | 3 | ||||
-rw-r--r-- | script.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -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; } |