Skip to content

Commit 3909676

Browse files
committed
[Shared] Fix CFontInfo::m_isVariant not getting initialized for non-variant fonts.
This fixes r_reloadfonts in SP.
1 parent a7855ce commit 3909676

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

code/rd-common/tr_font.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,7 @@ CFontInfo::CFontInfo(const char *_fontName)
10191019
m_fAltSBCSFontScaleFactor = -1;
10201020
#endif
10211021
m_bIsFakeAlienLanguage = !strcmp(_fontName,"aurabesh"); // dont try and make SBCS or asian overrides for this
1022+
m_isVariant = qfalse;
10221023

10231024
len = ri.FS_ReadFile(fontName, NULL);
10241025
if (len == sizeof(dfontdat_t))

codemp/rd-common/tr_font.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,7 @@ CFontInfo::CFontInfo(const char *_fontName)
882882
m_iOriginalFontWhenSBCSOverriden = -1;
883883
m_fAltSBCSFontScaleFactor = -1;
884884
m_bIsFakeAlienLanguage = !strcmp(_fontName,"aurabesh"); // dont try and make SBCS or asian overrides for this
885+
m_isVariant = qfalse;
885886

886887
len = ri.FS_ReadFile(fontName, NULL);
887888
if (len == sizeof(dfontdat_t))

0 commit comments

Comments
 (0)