aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_sprite_spawns.c
diff options
context:
space:
mode:
authorsalad <salad@saladesk.desktop>2020-03-23 18:00:29 +0100
committersalad <salad@saladesk.desktop>2020-03-23 18:00:29 +0100
commit006862cd0998804a979180c509d0e2da4afec948 (patch)
treeec00236f08c461cec11884d116cec83a2ca4838a /src/ft_get_sprite_spawns.c
parentGAME AWARDS 2020 (diff)
download42-cub3d-006862cd0998804a979180c509d0e2da4afec948.tar.gz
42-cub3d-006862cd0998804a979180c509d0e2da4afec948.tar.bz2
42-cub3d-006862cd0998804a979180c509d0e2da4afec948.tar.xz
42-cub3d-006862cd0998804a979180c509d0e2da4afec948.tar.zst
42-cub3d-006862cd0998804a979180c509d0e2da4afec948.zip
about to norm this mans whole career
Diffstat (limited to 'src/ft_get_sprite_spawns.c')
-rw-r--r--src/ft_get_sprite_spawns.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_get_sprite_spawns.c b/src/ft_get_sprite_spawns.c
index d7b6677..b00ef97 100644
--- a/src/ft_get_sprite_spawns.c
+++ b/src/ft_get_sprite_spawns.c
@@ -23,6 +23,7 @@ void
y = 0;
i = 0;
+ clist->mlist.sprite_nbr[s_n] = 0;
while (clist->mlist.map[++y])
{
while (clist->mlist.map[y][++x])
@@ -54,6 +55,7 @@ void
x = 1;
y = 1;
i = 0;
+ clist->mlist.sprite_nbr[0] = 0;
while (clist->mlist.map[y])
{
while (clist->mlist.map[y][x])