Skip to content
Permalink
Browse files

Test for font error at startup #2

  • Loading branch information...
ccw808 committed Jul 19, 2015
1 parent cce5c12 commit 906ff3377332b01b7f5ae45c4ba33e3b9e95db87
Showing with 1 addition and 1 deletion.
  1. +1 −1 MTA10/core/CGraphics.cpp
@@ -1085,7 +1085,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 );

0 comments on commit 906ff33

Please sign in to comment.
You can’t perform that action at this time.