diff --git a/Source/engine/palette.cpp b/Source/engine/palette.cpp index e95e00ed9..0d299b288 100644 --- a/Source/engine/palette.cpp +++ b/Source/engine/palette.cpp @@ -139,7 +139,7 @@ void palette_update(int first, int ncolor) return; assert(Palette); - if (SDLC_SetSurfaceAndPaletteColors(PalSurface, Palette.get(), system_palette.data(), first, ncolor) < 0) { + if (SDLC_SetSurfaceAndPaletteColors(PalSurface, Palette.get(), system_palette.data() + first, first, ncolor) < 0) { ErrSdl(); } pal_surface_palette_version++;