overlays: Fix warning (font_name is assigned a value that is only valid in the if scope)

This commit is contained in:
Megamouse
2026-09-30 08:48:19 +02:00
parent 488c71dfd7
commit 19ae2e9b23
+5 -2
View File
@@ -509,10 +509,13 @@ namespace rsx
{
if (font_name.empty())
{
font_name = g_cfg.video.ui.default_font.get();
font_ref = fontmgr::get(g_cfg.video.ui.default_font.get(), font_size);
}
else
{
font_ref = fontmgr::get(font_name, font_size);
}
font_ref = fontmgr::get(font_name, font_size);
m_is_compiled = false;
}