Skip to content

Commit 906ff33

Browse files
committed
Test for font error at startup #2
1 parent cce5c12 commit 906ff33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MTA10/core/CGraphics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ bool CGraphics::LoadStandardDXFonts ( void )
10851085
for ( uint i = 0 ; i < m_FontResourceNames.size () ; i++ )
10861086
{
10871087
SString strPathFilename = CalcMTASAPath ( "MTA\\cgui\\" + m_FontResourceNames[i] );
1088-
if ( AddFontResourceEx ( strPathFilename, FR_PRIVATE, 0 ) )
1088+
if ( !AddFontResourceEx ( strPathFilename, FR_PRIVATE, 0 ) )
10891089
{
10901090
SString strFileMd5 = GenerateHashHexStringFromFile ( EHashFunctionType::MD5, strPathFilename );
10911091
uint uiFileSize = (uint)FileSize( strPathFilename );

0 commit comments

Comments
 (0)