Skip to content

Commit

Permalink
CINE: Fix typo in OS palette restore code.
Browse files Browse the repository at this point in the history
This fixes most cases of incorrect palette on savegame loading.
Thanks to yaz0r for this fix.
  • Loading branch information
digitall committed Aug 11, 2012
1 parent 21c057c commit 78b8fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/cine/gfx.cpp
Expand Up @@ -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 {
Expand Down

0 comments on commit 78b8fa3

Please sign in to comment.