diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-19 17:42:39 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-19 17:42:39 +0100 |
commit | 7b2b82106491c78e7a288a77db1f5080ef089d0f (patch) | |
tree | 493a98bc97be86c4aaf34dbe0d29730e855a725b /src/ft_get_sprite.c | |
parent | Commit (diff) | |
download | 42-cub3d-7b2b82106491c78e7a288a77db1f5080ef089d0f.tar.gz 42-cub3d-7b2b82106491c78e7a288a77db1f5080ef089d0f.tar.bz2 42-cub3d-7b2b82106491c78e7a288a77db1f5080ef089d0f.tar.xz 42-cub3d-7b2b82106491c78e7a288a77db1f5080ef089d0f.tar.zst 42-cub3d-7b2b82106491c78e7a288a77db1f5080ef089d0f.zip |
go merge
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); } |