diff options
author | Filippos Karapetis | 2009-07-05 10:34:43 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-07-05 10:34:43 +0000 |
commit | 6cb5106a0b1b5f2c4d31dff321a08b134af82d1f (patch) | |
tree | 90c31fa640df90c5379b4271d094c9843f7c0940 /engines | |
parent | 6d3b2ec3afdb5b137f87b782e5b7f363ea2f1849 (diff) | |
download | scummvm-rg350-6cb5106a0b1b5f2c4d31dff321a08b134af82d1f.tar.gz scummvm-rg350-6cb5106a0b1b5f2c4d31dff321a08b134af82d1f.tar.bz2 scummvm-rg350-6cb5106a0b1b5f2c4d31dff321a08b134af82d1f.zip |
Removed validity check for atoi, which prevented console commands from interacting with resources with id 0
svn-id: r42117
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/console.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index 6ef6ff3d0c..d978915741 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -567,11 +567,6 @@ bool Console::cmdHexDump(int argc, const char **argv) { } int resNum = atoi(argv[2]); - if (resNum == 0) { - DebugPrintf("The resource number specified is not a number"); - return true; - } - ResourceType res = parseResourceType(argv[1]); if (res == kResourceTypeInvalid) @@ -628,11 +623,6 @@ bool Console::cmdResourceSize(int argc, const char **argv) { } int resNum = atoi(argv[2]); - if (resNum == 0) { - DebugPrintf("The resource number specified is not a number"); - return true; - } - ResourceType res = parseResourceType(argv[1]); if (res == kResourceTypeInvalid) |