diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_get_sprite.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ft_get_sprite.c b/src/ft_get_sprite.c index 791f51f..ebf0566 100644 --- a/src/ft_get_sprite.c +++ b/src/ft_get_sprite.c @@ -35,5 +35,10 @@ int8_t ft_strlen(FT_ERR_ALLOCATE) + 1); return (-1); } + if (ft_check_not_found(clist->mlist->sprite_path) < 0) + { + ft_strlcpy(clist->errmsg, FT_ERR_RD_SP, ft_strlen(FT_ERR_RD_SP) + 1); + return (-1); + } return (0); } |