aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_exit.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_exit.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c
index 1f47f02..91f1c4f 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -92,14 +92,14 @@ static void
mlx_destroy_image(clist->wlist.wlx, clist->tlist[18].img);
if (clist->mlist.isweapon[1] && clist->tlist[19].img)
mlx_destroy_image(clist->wlist.wlx, clist->tlist[19].img);
- if (cl->tweap[0].img)
- mlx_destroy_image(cl->wlist.wlx, cl->tweap[0].img);
- if (cl->tweap[1].img)
- mlx_destroy_image(cl->wlist.wlx, cl->tweap[1].img);
- if (cl->tweap[2].img)
- mlx_destroy_image(cl->wlist.wlx, cl->tweap[2].img);
- if (cl->tweap[3].img)
- mlx_destroy_image(cl->wlist.wlx, cl->tweap[3].img);
+ if (clist->tweap[0].img)
+ mlx_destroy_image(clist->wlist.wlx, clist->tweap[0].img);
+ if (clist->tweap[1].img)
+ mlx_destroy_image(clist->wlist.wlx, clist->tweap[1].img);
+ if (clist->tweap[2].img)
+ mlx_destroy_image(clist->wlist.wlx, clist->tweap[2].img);
+ if (clist->tweap[3].img)
+ mlx_destroy_image(clist->wlist.wlx, clist->tweap[3].img);
ft_del_extra_sprites(clist);
}