diff --git a/src/common/fonts/font.cpp b/src/common/fonts/font.cpp index 8421ab92b6..ff2279e348 100644 --- a/src/common/fonts/font.cpp +++ b/src/common/fonts/font.cpp @@ -656,6 +656,10 @@ int FFont::GetLuminosity (uint32_t *colorsused, TArray &Luminosity, int* int FFont::GetColorTranslation (EColorRange range, PalEntry *color) const { + // Single pic fonts don not set up their translation table and must always return 0. + if (Translations.Size() == 0) return 0; + assert(Translations.Size() == NumTextColors); + if (noTranslate) { PalEntry retcolor = PalEntry(255, 255, 255, 255);