Minor tweak on style loading

This commit is contained in:
Ray
2019-08-24 20:02:24 +02:00
parent 177f345afb
commit f9456d39da

View File

@ -3974,7 +3974,8 @@ RAYGUIDEF void GuiLoadStyle(const char *fileName)
sscanf(buffer, "f %d %s %[^\n]s", &fontSize, charmapFileName, fontFileName); sscanf(buffer, "f %d %s %[^\n]s", &fontSize, charmapFileName, fontFileName);
Font font = { 0 }; Font font = { 0 };
if (charmapFileName[0] != 0)
if (charmapFileName[0] != '0')
{ {
// Load characters from charmap file, // Load characters from charmap file,
// expected '\n' separated list of integer values // expected '\n' separated list of integer values