From 60bf096912952d00988eb825f7f84a33ad2519e4 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 6 Oct 2021 20:30:29 +0200 Subject: [PATCH] - fixed palette initialization for single lump fonts (FON2 and BMF) The bad increment was due to the palette being a byte array in older versions. --- src/common/fonts/singlelumpfont.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/fonts/singlelumpfont.cpp b/src/common/fonts/singlelumpfont.cpp index c4711d90223..7725cdb2df5 100644 --- a/src/common/fonts/singlelumpfont.cpp +++ b/src/common/fonts/singlelumpfont.cpp @@ -527,7 +527,7 @@ void FSingleLumpFont::FixupPalette (uint8_t *identity, const PalEntry *palette, double minlum = 100000000.0; identity[0] = 0; - palette += 3; // Skip the transparent color + palette++; // Skip the transparent color for (int i = 1; i < ActiveColors; ++i, palette ++) {