aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD G Turner2012-08-11 21:12:35 +0100
committerD G Turner2012-08-11 21:12:35 +0100
commit78b8fa31ca49aae2218fb0bdd20fda28b99b15a9 (patch)
tree5c22f1c3f3f98dd6544905515b974908b9e0b972
parent21c057ce7545d9fbb1cd958d22cbce5716384882 (diff)
downloadscummvm-rg350-78b8fa31ca49aae2218fb0bdd20fda28b99b15a9.tar.gz
scummvm-rg350-78b8fa31ca49aae2218fb0bdd20fda28b99b15a9.tar.bz2
scummvm-rg350-78b8fa31ca49aae2218fb0bdd20fda28b99b15a9.zip
CINE: Fix typo in OS palette restore code.
This fixes most cases of incorrect palette on savegame loading. Thanks to yaz0r for this fix.
-rw-r--r--engines/cine/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cine/gfx.cpp b/engines/cine/gfx.cpp
index 742c6606b0..8d73bae747 100644
--- a/engines/cine/gfx.cpp
+++ b/engines/cine/gfx.cpp
@@ -839,7 +839,7 @@ void OSRenderer::restorePalette(Common::SeekableReadStream &fHandle, int version
fHandle.read(buf, kHighPalNumBytes);
- if (colorCount == kHighPalNumBytes) {
+ if (colorCount == kHighPalNumColors) {
// Load the active 256 color palette from file
_activePal.load(buf, sizeof(buf), kHighPalFormat, kHighPalNumColors, CINE_LITTLE_ENDIAN);
} else {