From e29dd2fa3688e1e96a25af3b651da574af08aa90 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 13 Feb 2020 19:42:05 +0100 Subject: Splited structs --- src/ft_get_sprite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ft_get_sprite.c') diff --git a/src/ft_get_sprite.c b/src/ft_get_sprite.c index 490f538..c63c357 100644 --- a/src/ft_get_sprite.c +++ b/src/ft_get_sprite.c @@ -19,8 +19,8 @@ int8_t { if (!(*words) || !words[1] || words[2]) return (-1); - ft_memdel((void**)&clist->sprite_path); - if (!(clist->sprite_path = ft_strdup(*(words + 1)))) + ft_memdel((void**)&clist->mlist->sprite_path); + if (!(clist->mlist->sprite_path = ft_strdup(*(words + 1)))) return (-1); return (0); } -- cgit v1.2.3