fix rendering of string tree

This commit is contained in:
silverweed 2024-08-05 15:52:30 +02:00
parent 6e30189b5a
commit 81b3073e33

View file

@ -233,8 +233,8 @@ void imgui_render_string_tree(Arena *arena, String8_Node *root, u16 indent = 0)
for (String8_Node *node = root; node; node = node->next) {
ImGui::Text("%s%s", indent_str.c(), node->str.c());
for (String8_Node *child = node->first_child; child; child = child->next)
imgui_render_string_tree(arena, child, indent + 2);
if (node->first_child)
imgui_render_string_tree(arena, node->first_child, indent + 2);
}
}