diff options
author | Paul Gilbert | 2014-02-02 12:48:46 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-02-02 12:48:46 -0500 |
commit | a2b77b665e7af8c5b18494ccc7af2522cbac6380 (patch) | |
tree | 46d39749ef9eb9c810a61d24566b4885d5a0d88b /engines | |
parent | 647a2ded958a295f0ca3fc74e6e0cdc452efe83e (diff) | |
download | scummvm-rg350-a2b77b665e7af8c5b18494ccc7af2522cbac6380.tar.gz scummvm-rg350-a2b77b665e7af8c5b18494ccc7af2522cbac6380.tar.bz2 scummvm-rg350-a2b77b665e7af8c5b18494ccc7af2522cbac6380.zip |
VOYEUR: Fix for loading in blocks from file correctly when decompressing data
Diffstat (limited to 'engines')
-rw-r--r-- | engines/voyeur/files.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/voyeur/files.cpp b/engines/voyeur/files.cpp index b5f6fb906a..05e3fee74f 100644 --- a/engines/voyeur/files.cpp +++ b/engines/voyeur/files.cpp @@ -163,14 +163,14 @@ byte *BoltFilesState::decompress(byte *buf, int size, int mode) { #undef NEXT_BYTE void BoltFilesState::nextBlock() { - if (&_curLibPtr->_file != _curFd || _curFilePosition != _bufferEnd) + if (&_curLibPtr->_file != _curFd || _curFd->pos() != _bufferEnd) _curLibPtr->_file.seek(_bufferEnd); _curFd = &_curLibPtr->_file; _bufferBegin = _bufferEnd; int bytesRead = _curFd->read(_bufStart, _bufSize); - _bufferEnd = _curFilePosition = _bufferBegin + bytesRead; + _bufferEnd = _curFilePosition = _curFd->pos(); _bytesLeft = bytesRead - 1; _bufPos = _bufStart; } |