aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMax Horn2009-02-22 04:04:33 +0000
committerMax Horn2009-02-22 04:04:33 +0000
commita4968c1cf68293471bc6eca93d68106ce952dec1 (patch)
tree63765f11b1d430935067da7a50bb603fcb1f713e /engines/sci
parenta44fd9f967da37d3daa31cd264db5b89668e4e59 (diff)
downloadscummvm-rg350-a4968c1cf68293471bc6eca93d68106ce952dec1.tar.gz
scummvm-rg350-a4968c1cf68293471bc6eca93d68106ce952dec1.tar.bz2
scummvm-rg350-a4968c1cf68293471bc6eca93d68106ce952dec1.zip
SCI: Resolve FIXME in decompression code
svn-id: r38778
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/scicore/decompress1.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sci/scicore/decompress1.cpp b/engines/sci/scicore/decompress1.cpp
index 2936b722bc..ccf8d1704f 100644
--- a/engines/sci/scicore/decompress1.cpp
+++ b/engines/sci/scicore/decompress1.cpp
@@ -280,8 +280,7 @@ int decompress1(resource_t *result, Common::ReadStream &stream, int sci_version)
result->number = result->id & 0x07ff;
result->type = result->id >> 11;
- // FIXME: Shouldn't it be SCI_VERSION_1_EARLY instead of SCI_VERSION_1_LATE?
- if ((result->number >= sci_max_resource_nr[SCI_VERSION_1_LATE]) || (result->type > sci_invalid_resource))
+ if ((result->number >= sci_max_resource_nr[SCI_VERSION_1_EARLY]) || (result->type > sci_invalid_resource))
return SCI_ERROR_DECOMPRESSION_INSANE;
} else {
result->id = stream.readByte();