X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9dc2984179d989f8774ea7ff6d72c81d376b5a2c..8ae4c5e8f4f88c52eb2947f9c9195f132785b46a:/projects/stargazer/plugins/configuration/sgconfig/parser.cpp?ds=inline diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser.cpp index b984adf6..e52eb3fa 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser.cpp @@ -35,11 +35,12 @@ 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; CreateAnswer(); + m_done = true; } --m_depth;