diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-25 18:46:15 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-25 18:46:15 +0100 |
commit | 58b408a130b2bec0d401b43d77ded34c9a8d34f9 (patch) | |
tree | 9eb665f259a98a834a777272b2683a0cb2bc5a57 /src/ft_get_sprite.c | |
parent | Merge branch 'better_m_s' (diff) | |
download | 42-cub3d-58b408a130b2bec0d401b43d77ded34c9a8d34f9.tar.gz 42-cub3d-58b408a130b2bec0d401b43d77ded34c9a8d34f9.tar.bz2 42-cub3d-58b408a130b2bec0d401b43d77ded34c9a8d34f9.tar.xz 42-cub3d-58b408a130b2bec0d401b43d77ded34c9a8d34f9.tar.zst 42-cub3d-58b408a130b2bec0d401b43d77ded34c9a8d34f9.zip |
Fixed sprite parse
Diffstat (limited to 'src/ft_get_sprite.c')
-rw-r--r-- | src/ft_get_sprite.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_get_sprite.c b/src/ft_get_sprite.c index 05b13b2..9e84e93 100644 --- a/src/ft_get_sprite.c +++ b/src/ft_get_sprite.c @@ -46,6 +46,8 @@ static int8_t return (-1); i++; } + if (i + 2 > clist->mlist.topsp) + clist->mlist.topsp = i + 2; return (0); } |