fix rendering of string tree
This commit is contained in:
parent
6e30189b5a
commit
81b3073e33
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue