From a4968c1cf68293471bc6eca93d68106ce952dec1 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 22 Feb 2009 04:04:33 +0000 Subject: SCI: Resolve FIXME in decompression code svn-id: r38778 --- engines/sci/scicore/decompress1.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines/sci') 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(); -- cgit v1.2.3