aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2012-07-03 00:00:38 +0200
committerWillem Jan Palenstijn2012-07-03 00:00:48 +0200
commitb091c0bd090f075e6e0b796785c400dbe9d2b8ac (patch)
tree761d741a0696f30c0cbbfd9f44c075941d2ef825 /engines
parentf6e4312665614d7b5b626f997194fbbcb00ddbb0 (diff)
downloadscummvm-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.cpp4
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);
}