diff options
author | Willem Jan Palenstijn | 2009-02-17 19:53:04 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2009-02-17 19:53:04 +0000 |
commit | 2294621e5a97b3eeaca24228dc2630d12fcfbdd5 (patch) | |
tree | 4bccdfda1e99513ea2c658ed4a9b9538eede6705 | |
parent | 23dd0d861d596f526b1f51eefa4355a371ecf6d4 (diff) | |
download | scummvm-rg350-2294621e5a97b3eeaca24228dc2630d12fcfbdd5.tar.gz scummvm-rg350-2294621e5a97b3eeaca24228dc2630d12fcfbdd5.tar.bz2 scummvm-rg350-2294621e5a97b3eeaca24228dc2630d12fcfbdd5.zip |
clarify scumm debugger error message
svn-id: r38439
-rw-r--r-- | engines/scumm/debugger.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/scumm/debugger.cpp b/engines/scumm/debugger.cpp index f5dde54354..d7648d07b0 100644 --- a/engines/scumm/debugger.cpp +++ b/engines/scumm/debugger.cpp @@ -484,10 +484,14 @@ bool ScummDebugger::Cmd_Object(int argc, const char **argv) { _vm->markObjectRectAsDirty(obj); _vm->clearDrawObjectQueue(); _vm->runInventoryScript(obj); - } else if (!strcmp(argv[2], "state") && argc == 4) { - _vm->putState(obj, atoi(argv[3])); - //is BgNeedsRedraw enough? - _vm->_bgNeedsRedraw = true; + } else if (!strcmp(argv[2], "state")) { + if (argc == 4) { + _vm->putState(obj, atoi(argv[3])); + //is BgNeedsRedraw enough? + _vm->_bgNeedsRedraw = true; + } else { + DebugPrintf("object command 'state' requires a parameter\n"); + } } else if (!strcmp(argv[2], "name")) { DebugPrintf("Name of object %d: %s\n", obj, _vm->getObjOrActorName(obj)); } else { |