Skip to content

Commit

Permalink
SCI: Remove unnecessary const-cast
Browse files Browse the repository at this point in the history
  • Loading branch information
wjp committed Jul 2, 2012
1 parent f6e4312 commit b091c0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/sci/engine/kvideo.cpp
Expand Up @@ -90,7 +90,7 @@ void playVideo(Video::VideoDecoder *videoDecoder, VideoState videoState) {
EngineState *s = g_sci->getEngineState();

if (videoDecoder->hasDirtyPalette()) {
byte *palette = (byte *)videoDecoder->getPalette() + s->_vmdPalStart * 3;
const byte *palette = videoDecoder->getPalette() + s->_vmdPalStart * 3;
g_system->getPaletteManager()->setPalette(palette, s->_vmdPalStart, s->_vmdPalEnd - s->_vmdPalStart);
}

Expand All @@ -108,7 +108,7 @@ void playVideo(Video::VideoDecoder *videoDecoder, VideoState videoState) {
}

if (videoDecoder->hasDirtyPalette()) {
byte *palette = (byte *)videoDecoder->getPalette() + s->_vmdPalStart * 3;
const byte *palette = videoDecoder->getPalette() + s->_vmdPalStart * 3;
g_system->getPaletteManager()->setPalette(palette, s->_vmdPalStart, s->_vmdPalEnd - s->_vmdPalStart);
}

Expand Down

0 comments on commit b091c0b

Please sign in to comment.