diff options
author | Joel Teichroeb | 2012-04-04 21:23:00 -0700 |
---|---|---|
committer | Joel Teichroeb | 2012-04-04 21:23:00 -0700 |
commit | 1d0904197f8aba757a65afddaea316aa9e3c36ab (patch) | |
tree | 17373cafbd852dd0bdeed56d3a831d68c8334828 /engines | |
parent | f83f5c5677111f4005d4fed633efba0e86bc805c (diff) | |
download | scummvm-rg350-1d0904197f8aba757a65afddaea316aa9e3c36ab.tar.gz scummvm-rg350-1d0904197f8aba757a65afddaea316aa9e3c36ab.tar.bz2 scummvm-rg350-1d0904197f8aba757a65afddaea316aa9e3c36ab.zip |
PARALLACTION: Fix spelling of length
Diffstat (limited to 'engines')
-rw-r--r-- | engines/parallaction/disk_ns.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/parallaction/disk_ns.cpp b/engines/parallaction/disk_ns.cpp index b2285d0da3..839b2c6834 100644 --- a/engines/parallaction/disk_ns.cpp +++ b/engines/parallaction/disk_ns.cpp @@ -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; @@ -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]; } } @@ -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); } |