GRAPHICS: MACGUI: Fix registering font to preferred ID

This commit is contained in:
djsrv 2021-08-06 08:56:32 -04:00
parent ce7cdd11b8
commit 40c8ab4724

View File

@ -542,7 +542,7 @@ int MacFontManager::registerFontName(Common::String name, int preferredId) {
return _fontIds[name];
int id;
if (preferredId > -1 && !_fontInfo.contains(id)) {
if (preferredId > -1 && !_fontInfo.contains(preferredId)) {
id = preferredId;
} else {
// Preferred ID is already registered, find an unused one.