mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-03 23:31:57 +00:00
Fixed a bug in the 'watch' debug command..
svn-id: r3686
This commit is contained in:
parent
c161197117
commit
07bfd66c12
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user