mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 01:48:08 +01:00
fix: fixed segfault when compiling for mandatory part. Fixed bad check
This commit is contained in:
parent
3e8e4250c7
commit
6e4374dc3e
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: tchampio <tchampio@student.42lehavre.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/08/05 15:51:01 by tchampio #+# #+# */
|
||||
/* Updated: 2025/08/13 15:30:55 by tchampio ### ########.fr */
|
||||
/* Updated: 2025/08/18 13:39:26 by tchampio ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -106,7 +106,7 @@ void sprite_caster(t_cub3d_data *data)
|
|||
{
|
||||
int i;
|
||||
|
||||
if (!data->sprite_list)
|
||||
if (!data->sprite_list || !data->sprite_list[0])
|
||||
return ;
|
||||
sort_sprites(data->sprite_order, data->sprite_distances, data);
|
||||
if (data->sprite_distances[3] <= 1.5)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue