aboutsummaryrefslogtreecommitdiff
path: root/common/macresman.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/macresman.cpp')
-rw-r--r--common/macresman.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/common/macresman.cpp b/common/macresman.cpp
index 6a6a818083..de78cedf61 100644
--- a/common/macresman.cpp
+++ b/common/macresman.cpp
@@ -439,11 +439,6 @@ Common::SeekableReadStream *MacResManager::getResource(uint32 typeID, uint16 res
_stream->seek(_dataOffset + _resLists[typeNum][resNum].dataOffset);
uint32 len = _stream->readUint32BE();
-
- // Ignore resources with 0 length
- if (!len)
- return 0;
-
return _stream->readStream(len);
}
@@ -453,11 +448,6 @@ Common::SeekableReadStream *MacResManager::getResource(const Common::String &fil
if (_resLists[i][j].nameOffset != -1 && filename.equalsIgnoreCase(_resLists[i][j].name)) {
_stream->seek(_dataOffset + _resLists[i][j].dataOffset);
uint32 len = _stream->readUint32BE();
-
- // Ignore resources with 0 length
- if (!len)
- return 0;
-
return _stream->readStream(len);
}
}