diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-21 19:57:18 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-21 19:57:18 +0100 |
commit | fb6d429478e2a8983b52ffee7bb7b20b7bb11211 (patch) | |
tree | 0d1857684ea48edd6bb24c94f1d40c0c5b7a1cf3 /src/ft_init_lists.c | |
parent | Get recaled (diff) | |
download | 42-cub3d-fb6d429478e2a8983b52ffee7bb7b20b7bb11211.tar.gz 42-cub3d-fb6d429478e2a8983b52ffee7bb7b20b7bb11211.tar.bz2 42-cub3d-fb6d429478e2a8983b52ffee7bb7b20b7bb11211.tar.xz 42-cub3d-fb6d429478e2a8983b52ffee7bb7b20b7bb11211.tar.zst 42-cub3d-fb6d429478e2a8983b52ffee7bb7b20b7bb11211.zip |
Starting to valgrind
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r-- | src/ft_init_lists.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c index 7bf716b..29771a5 100644 --- a/src/ft_init_lists.c +++ b/src/ft_init_lists.c @@ -96,8 +96,6 @@ static int8_t cl->walltexgood = 0; ft_init_funptr(cl); ft_init_ref(cl); - if (ft_init_sprites(&cl->sprites) < 0) - return (-1); return (0); } @@ -108,6 +106,10 @@ int8_t return (-1); if (ft_init_win(&clist->wlist) < 0) return (-1); + if (ft_init_sprites(&clist->sprites) < 0) + return (-1); + if (ft_init_weaps(&clist->weaps) < 0) + return (-1); ft_sprintf(clist->fps_count, "fps: 60"); clist->isdead = 0; clist->moves = 0; |