aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorMax Horn2009-09-11 08:55:47 +0000
committerMax Horn2009-09-11 08:55:47 +0000
commit101150832582bba15d463ba27e60cb9f0d65a437 (patch)
tree48886f8c615ae558d29d18d331d688485fe62134 /engines/saga
parent7cf23a2c4d20fe23133974e5a0595edd44fd49b4 (diff)
downloadscummvm-rg350-101150832582bba15d463ba27e60cb9f0d65a437.tar.gz
scummvm-rg350-101150832582bba15d463ba27e60cb9f0d65a437.tar.bz2
scummvm-rg350-101150832582bba15d463ba27e60cb9f0d65a437.zip
Slightly modified version of Patch #2838562: Improve endian.h and stream.h
svn-id: r44027
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/animation.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/saga/animation.cpp b/engines/saga/animation.cpp
index 0d298bf96a..95a850cfe2 100644
--- a/engines/saga/animation.cpp
+++ b/engines/saga/animation.cpp
@@ -826,12 +826,10 @@ int Anim::fillFrameOffsets(AnimationData *anim, bool reallyFill) {
int i;
bool longData = isLongData();
- MemoryReadStreamEndian readS(anim->resourceData, anim->resourceLength, _vm->isBigEndian());
+ MemoryReadStreamEndian readS(anim->resourceData, anim->resourceLength, !_vm->isBigEndian()); // RLE has inversion BE<>LE
readS.seek(12);
- readS._bigEndian = !_vm->isBigEndian(); // RLE has inversion BE<>LE
-
while (readS.pos() != readS.size()) {
if (reallyFill) {
anim->frameOffsets[currentFrame] = readS.pos();