aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/videoplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/videoplayer.cpp')
-rw-r--r--engines/gob/videoplayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp
index 4bbb6a55ce..5bd7d08005 100644
--- a/engines/gob/videoplayer.cpp
+++ b/engines/gob/videoplayer.cpp
@@ -753,7 +753,7 @@ Graphics::CoktelDecoder *VideoPlayer::openVideo(const Common::String &file, Prop
}
void VideoPlayer::copyPalette(const Video &video, int16 palStart, int16 palEnd) {
- if (!video.decoder->hasPalette())
+ if (!video.decoder->hasPalette() || !video.decoder->isPaletted())
return;
if (palStart < 0)