diff options
| author | Max Horn | 2003-01-13 15:27:06 +0000 |
|---|---|---|
| committer | Max Horn | 2003-01-13 15:27:06 +0000 |
| commit | d900d280c08bb5932c66ba1b9d481587e4a797fe (patch) | |
| tree | ca6c1057caf12d1c1dec92063dbbe8ddd26065a2 /scumm/scummvm.cpp | |
| parent | 0a3bc7d36fb2764d65e2666d4f7542333f94b498 (diff) | |
| download | scummvm-rg350-d900d280c08bb5932c66ba1b9d481587e4a797fe.tar.gz scummvm-rg350-d900d280c08bb5932c66ba1b9d481587e4a797fe.tar.bz2 scummvm-rg350-d900d280c08bb5932c66ba1b9d481587e4a797fe.zip | |
fixed checkRange output; added checkRange call to drawObject; cleanup
svn-id: r6447
Diffstat (limited to 'scumm/scummvm.cpp')
| -rw-r--r-- | scumm/scummvm.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index 8c9bea8b85..b3dc865e0e 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -370,8 +370,10 @@ void Scumm::initScummVars() void Scumm::checkRange(int max, int min, int no, const char *str) { if (no < min || no > max) { - error("Value %d is out of bounds (%d,%d) int script(%d) msg %s", no, min, - max, vm.slot[_curExecScript].number, str); + char buf[1024]; + sprintf(buf, str, no); + error("Value %d is out of bounds (%d,%d) in script %d (%s)", no, min, + max, vm.slot[_curExecScript].number, buf); } } |
