MTROPOLIS: Fix crash in Spider oil puzzle tower map viewer

This commit is contained in:
elasota 2022-06-01 03:35:57 -04:00 committed by Eugene Sandulenko
parent 35a3ad904d
commit 18466585a1

View File

@ -739,7 +739,7 @@ const Common::SharedPtr<Graphics::Surface> &CachedImage::optimize(Runtime *runti
const byte *palette = nullptr;
if (_colorDepth == kColorDepthMode16Bit)
if (_colorDepth == kColorDepthMode16Bit || _colorDepth == kColorDepthMode32Bit)
palette = bwPalette;
_surface->convertToInPlace(renderFmt, palette);