diff --git a/components/fontloader/fontloader.cpp b/components/fontloader/fontloader.cpp index 35d0e8d4fa..40cf965f43 100644 --- a/components/fontloader/fontloader.cpp +++ b/components/fontloader/fontloader.cpp @@ -220,7 +220,7 @@ namespace Gui { std::filesystem::path path = name; if (Misc::getFileExtension(name) == "omwfont") - MyGUI::ResourceManager::getInstance().load(path.filename()); + MyGUI::ResourceManager::getInstance().load(path.filename().string()); } dataManager->setResourcePath(oldDataPath);