Follow up fix

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk 2023-02-04 14:54:09 +01:00
parent a3f95849ae
commit 5b60b4ade6

View file

@ -172,7 +172,7 @@ void Editor::LoadEdits()
// Migrate clients with an old root node.
if (!rootNode)
rootNode = doc.child("mapsme");
CHECK(rootNode, ("The root xml element is invalid"));
// TODO: Empty rootNode is an OK case for the current logic and unit tests. Check if there is a better way to do it.
for (auto const & mwm : rootNode.children(kXmlMwmNode))
{
string const mapName = mwm.attribute("name").as_string("");