From 60e1f865719c8c88644e548f66cbee3d1d4cfa8c Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 17 Feb 2022 14:21:01 +0000 Subject: [PATCH] Fix xml handling of arrays when loading config --- renderdoc/core/settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/core/settings.cpp b/renderdoc/core/settings.cpp index c315e2a52..09ce133f4 100644 --- a/renderdoc/core/settings.cpp +++ b/renderdoc/core/settings.cpp @@ -189,7 +189,7 @@ static SDObject *XML2Config(pugi::xml_node &obj) valueObj = makeSDArray("value"_lit); uint32_t i = 0; - for(pugi::xml_node el = value.first_child(); el; el = el.next_sibling()) + for(pugi::xml_node el = value; el; el = el.next_sibling()) { SDObject *childObj = makeSDObject("$el"_lit, type, el);