diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-27 17:09:10 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-27 17:09:10 +0100 |
commit | 415d4203ed42e77af5d7da73bc9edcfdbe743ea8 (patch) | |
tree | aa65d8cbc37d11410acec605b6b9c55e653d222a /src/ft_sort_s_t.c | |
parent | Fixed shit (diff) | |
download | 42-cub3d-415d4203ed42e77af5d7da73bc9edcfdbe743ea8.tar.gz 42-cub3d-415d4203ed42e77af5d7da73bc9edcfdbe743ea8.tar.bz2 42-cub3d-415d4203ed42e77af5d7da73bc9edcfdbe743ea8.tar.xz 42-cub3d-415d4203ed42e77af5d7da73bc9edcfdbe743ea8.tar.zst 42-cub3d-415d4203ed42e77af5d7da73bc9edcfdbe743ea8.zip |
kk
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]; |