diff --git a/Library/ConfigParser.cpp b/Library/ConfigParser.cpp index 37385273..556bf59a 100644 --- a/Library/ConfigParser.cpp +++ b/Library/ConfigParser.cpp @@ -2069,7 +2069,13 @@ void ConfigParser::ReadIniFile(const std::wstring& iniFile, LPCTSTR skinSection, } } + // Save the section insertion position in case the included file also uses an @Include + std::list::const_iterator prevInsertPos = m_SectionInsertPos; + ReadIniFile(value, skinSection, depth + 1); + + // Reset the section insertion position to previous position + m_SectionInsertPos = prevInsertPos; } } else