les stacks se sauvegardent dans solution

This commit is contained in:
hugogogo
2021-06-14 12:32:06 +02:00
parent ef7ffdb4dc
commit 7a0f44c676
8 changed files with 21 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ t_list *sa(t_stack **stack, t_list **solution)
tmp = a->n;
a->n = a->next->n;
a->next->n = tmp;
fill_solution(stack, NULL, solution, ft_strdup("sa"));
fill_solution(*stack, NULL, solution, ft_strdup("sa"));
return (NULL);
}