Skip to content

Commit

Permalink
Test for font error at startup #2
Browse files Browse the repository at this point in the history
  • Loading branch information
ccw808 committed Jul 19, 2015
1 parent 3d0201f commit a05f2bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MTA10/core/CGraphics.cpp
Expand Up @@ -1095,7 +1095,7 @@ bool CGraphics::LoadStandardDXFonts ( void )
for ( uint i = 0 ; i < m_FontResourceNames.size () ; i++ )
{
SString strPathFilename = CalcMTASAPath ( "MTA\\cgui\\" + m_FontResourceNames[i] );
if ( AddFontResourceEx ( strPathFilename, FR_PRIVATE, 0 ) )
if ( !AddFontResourceEx ( strPathFilename, FR_PRIVATE, 0 ) )
{
SString strFileMd5 = GenerateHashHexStringFromFile ( EHashFunctionType::MD5, strPathFilename );
uint uiFileSize = (uint)FileSize( strPathFilename );
Expand Down

0 comments on commit a05f2bb

Please sign in to comment.