diff --git a/src/v_font.cpp b/src/v_font.cpp index 176b5097d..c1923e4ac 100644 --- a/src/v_font.cpp +++ b/src/v_font.cpp @@ -1125,7 +1125,7 @@ void FSingleLumpFont::LoadFON2 (int lump, const BYTE *data) SpaceWidth = totalwidth * 2 / (3 * count); } - memcpy(PaletteData, palette, 768); + memcpy(PaletteData, palette, (ActiveColors+1)*3); data_p = palette + (ActiveColors+1)*3;