aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-27 17:09:10 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-27 17:09:10 +0100
commit415d4203ed42e77af5d7da73bc9edcfdbe743ea8 (patch)
treeaa65d8cbc37d11410acec605b6b9c55e653d222a
parentFixed shit (diff)
download42-cub3d-415d4203ed42e77af5d7da73bc9edcfdbe743ea8.tar.gz
42-cub3d-415d4203ed42e77af5d7da73bc9edcfdbe743ea8.tar.bz2
42-cub3d-415d4203ed42e77af5d7da73bc9edcfdbe743ea8.tar.xz
42-cub3d-415d4203ed42e77af5d7da73bc9edcfdbe743ea8.tar.zst
42-cub3d-415d4203ed42e77af5d7da73bc9edcfdbe743ea8.zip
kk
-rw-r--r--src/ft_sort_s_t.c2
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];