diff options
author | Willem Jan Palenstijn | 2012-07-03 00:00:38 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2012-07-03 00:00:48 +0200 |
commit | b091c0bd090f075e6e0b796785c400dbe9d2b8ac (patch) | |
tree | 761d741a0696f30c0cbbfd9f44c075941d2ef825 /engines | |
parent | f6e4312665614d7b5b626f997194fbbcb00ddbb0 (diff) | |
download | scummvm-rg350-b091c0bd090f075e6e0b796785c400dbe9d2b8ac.tar.gz scummvm-rg350-b091c0bd090f075e6e0b796785c400dbe9d2b8ac.tar.bz2 scummvm-rg350-b091c0bd090f075e6e0b796785c400dbe9d2b8ac.zip |
SCI: Remove unnecessary const-cast
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/kvideo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/kvideo.cpp b/engines/sci/engine/kvideo.cpp index 2456ba1100..61d2f935f7 100644 --- a/engines/sci/engine/kvideo.cpp +++ b/engines/sci/engine/kvideo.cpp @@ -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); } @@ -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); } |