parentheses update

This commit is contained in:
gazhonsepaskwa
2025-01-30 10:18:48 +01:00
parent 94e2f26112
commit 615e91f991
5 changed files with 23 additions and 32 deletions

View File

@@ -48,7 +48,7 @@ void draw_pline_part(t_ast_n *node, t_elems *e, int fd, int node_id)
i = 0;
e->rect.y += e->rect.h + 50;
while (node->pline[i])
while (node->pline && node->pline[i])
{
e->arrow.id_dst = print_ast(node->pline[i++], e, fd);
e->arrow.id_src = node_id;