diff options
Diffstat (limited to 'src/ft_sort_s_t.c')
-rw-r--r-- | src/ft_sort_s_t.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_sort_s_t.c b/src/ft_sort_s_t.c index 9cbde8b..0f14d35 100644 --- a/src/ft_sort_s_t.c +++ b/src/ft_sort_s_t.c @@ -66,7 +66,7 @@ void ft_init_st(cl->mlist.st_o); while (++i < FT_TOTAL_SPRT) { - if (i < FT_TOTAL_SPRT && dist_tab[i][0] + if (dist_tab[i][0] && dist_tab[i][0] < dist_tab[i + 1][0]) { tmp = cl->mlist.st_o[i]; |