diff --git a/src/fntsys.c b/src/fntsys.c index 3d8a28932..e61ecbfc0 100644 --- a/src/fntsys.c +++ b/src/fntsys.c @@ -316,10 +316,10 @@ int fntLoadDefaultInternal(char *path, int fontSize, int fontID) // we have to lock this phase, as the old font may still be used // Note: No check for concurrency is done here, which is kinda funky! WaitSema(gFontSemaId); - if (fontId == FNT_DEFAULT) { + if (fontID == FNT_DEFAULT) { memcpy(&oldFont, &fonts[FNT_DEFAULT], sizeof(font_t)); memcpy(&fonts[FNT_DEFAULT], &newFont, sizeof(font_t)); - } else if (fontId == 1) { + } else if (fontID == 1) { memcpy(&oldFont, &fonts[1], sizeof(font_t)); memcpy(&fonts[1], &newFont, sizeof(font_t)); }