From 78b8fa31ca49aae2218fb0bdd20fda28b99b15a9 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Sat, 11 Aug 2012 21:12:35 +0100 Subject: CINE: Fix typo in OS palette restore code. This fixes most cases of incorrect palette on savegame loading. Thanks to yaz0r for this fix. --- engines/cine/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3