by Rachael » Tue May 12, 2020 1:54 am
I was able to do a band-aid fix with this:
Code: Select all
diff --git a/src/common/fonts/font.cpp b/src/common/fonts/font.cpp
index c8964accf..1854ed634 100644
--- a/src/common/fonts/font.cpp
+++ b/src/common/fonts/font.cpp
@@ -850,6 +850,8 @@ void FFont::BuildTranslations (const double *luminosity, const uint8_t *identity
int FFont::GetColorTranslation (EColorRange range, PalEntry *color) const
{
+ if (Translations.Size() == 0)
+ return -1;
if (noTranslate)
{
PalEntry retcolor = PalEntry(255, 255, 255, 255);
But I am not sure if it is a proper fix. If you want though, I can commit that directly to the texture_rework branch.
I was able to do a band-aid fix with this:
[code]diff --git a/src/common/fonts/font.cpp b/src/common/fonts/font.cpp
index c8964accf..1854ed634 100644
--- a/src/common/fonts/font.cpp
+++ b/src/common/fonts/font.cpp
@@ -850,6 +850,8 @@ void FFont::BuildTranslations (const double *luminosity, const uint8_t *identity
int FFont::GetColorTranslation (EColorRange range, PalEntry *color) const
{
+ if (Translations.Size() == 0)
+ return -1;
if (noTranslate)
{
PalEntry retcolor = PalEntry(255, 255, 255, 255);[/code]
But I am not sure if it is a proper fix. If you want though, I can commit that directly to the texture_rework branch.