- do not calculate translations for empty fonts.

FONTDEFS will create some due to lack of game filtering.
This commit is contained in:
Christoph Oelckers 2021-05-27 13:50:02 +02:00
parent 2ca2076a3f
commit 36e84a3669

View file

@ -141,6 +141,17 @@ void FSpecialFont::LoadTranslations()
{
FFont::LoadTranslations();
bool empty = true;
for (auto& c : Chars)
{
if (c.OriginalPic != nullptr)
{
empty = false;
break;
}
}
if (empty) return; // Font has no characters.
bool needsnotrans = false;
// exclude the non-translated colors from the translation calculation
for (int i = 0; i < 256; i++)