/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_del_sfx_cmd.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rbousset +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:28:46 by rbousset #+# #+# */ /* Updated: 2020/02/14 17:28:46 by rbousset ### ########lyon.fr */ /* */ /* ************************************************************************** */ #include #include #include void ft_del_sfx_cmd(t_cub *clist) { uint8_t i; i = 0; while (i < FT_TOTAL_SFX) { ft_memdel((void*)&clist->sfx[i].cmd); i++; } ft_memdel((void*)&clist->sfx[1].cmd_alt); ft_memdel((void*)&clist->sfx[3].cmd_alt); ft_memdel((void*)&clist->sfx[14].cmd_alt); }