GOB: Don't clobber the global palette

svn-id: r55270
This commit is contained in:
Sven Hesse 2011-01-16 22:28:20 +00:00
parent 199b5d06af
commit 68ebdf20d5

View File

@ -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)