Skip to content

Commit

Permalink
PARALLACTION: Fix spelling of length
Browse files Browse the repository at this point in the history
  • Loading branch information
klusark committed Apr 5, 2012
1 parent f83f5c5 commit 1d09041
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions engines/parallaction/disk_ns.cpp
Expand Up @@ -62,7 +62,7 @@ class NSArchive : public Common::Archive {
Common::SeekableReadStream *_stream;

char _archiveDir[MAX_ARCHIVE_ENTRIES][32];
uint32 _archiveLenghts[MAX_ARCHIVE_ENTRIES];
uint32 _archiveLengths[MAX_ARCHIVE_ENTRIES];
uint32 _archiveOffsets[MAX_ARCHIVE_ENTRIES];
uint32 _numFiles;

Expand Down Expand Up @@ -103,8 +103,8 @@ NSArchive::NSArchive(Common::SeekableReadStream *stream, Common::Platform platfo
uint32 dataOffset = (isSmallArchive) ? SMALL_ARCHIVE_DATA_OFS : NORMAL_ARCHIVE_DATA_OFS;
for (uint16 i = 0; i < _numFiles; i++) {
_archiveOffsets[i] = dataOffset;
_archiveLenghts[i] = _stream->readUint32BE();
dataOffset += _archiveLenghts[i];
_archiveLengths[i] = _stream->readUint32BE();
dataOffset += _archiveLengths[i];
}

}
Expand Down Expand Up @@ -133,7 +133,7 @@ Common::SeekableReadStream *NSArchive::createReadStreamForMember(const Common::S
debugC(9, kDebugDisk, "NSArchive::createReadStreamForMember: '%s' found in slot %i", name.c_str(), index);

int offset = _archiveOffsets[index];
int endOffset = _archiveOffsets[index] + _archiveLenghts[index];
int endOffset = _archiveOffsets[index] + _archiveLengths[index];
return new Common::SeekableSubReadStream(_stream, offset, endOffset, DisposeAfterUse::NO);
}

Expand Down

0 comments on commit 1d09041

Please sign in to comment.