diff options
Diffstat (limited to 'saga')
-rw-r--r-- | saga/sprite.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/saga/sprite.cpp b/saga/sprite.cpp index 255da47cca..ac07ec3cf4 100644 --- a/saga/sprite.cpp +++ b/saga/sprite.cpp @@ -402,7 +402,7 @@ void Sprite::decodeRLEBuffer(const byte *inputBuffer, size_t inLength, size_t ou MemoryReadStream readS(inputBuffer, inLength); - while (!readS.eos() && (outPointer < outPointerEnd - 1)) { + while (!readS.eos() && (outPointer < outPointerEnd)) { bg_runcount = readS.readByte(); fg_runcount = readS.readByte(); |