diff --git a/UI/Theme.cpp b/UI/Theme.cpp index c59a591275..91c7d10dbf 100644 --- a/UI/Theme.cpp +++ b/UI/Theme.cpp @@ -114,6 +114,11 @@ static void LoadThemeInfo(const std::vector &directories) { // Alright, let's loop through the sections and see if any is a theme. for (size_t i = 0; i < ini.Sections().size(); i++) { Section §ion = *(ini.Sections()[i].get()); + + if (section.name().empty()) { + continue; + } + ThemeInfo info; section.Get("Name", &info.name, section.name().c_str());