X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/c65b73de5dfbbb54f7b977a9fcd72d1abbb1e827..d2fc992c13b7684957b4bfa4b409389e9383d333:/projects/stargazer/plugins/configuration/sgconfig/parser.cpp?ds=sidebyside

diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser.cpp
index b984adf6..03717981 100644
--- a/projects/stargazer/plugins/configuration/sgconfig/parser.cpp
+++ b/projects/stargazer/plugins/configuration/sgconfig/parser.cpp
@@ -35,7 +35,7 @@ int BASE_PARSER::Start(void *, const char * el, const char **)
 //-----------------------------------------------------------------------------
 int BASE_PARSER::End(void *, const char * el)
 {
-    if (m_depth == 1)
+    if (m_depth < 2)
     {
         if (strcasecmp(el, m_tag.c_str()) != 0)
             return -1;