diff options
Diffstat (limited to 'src/ft_get_colors.c')
-rw-r--r-- | src/ft_get_colors.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_get_colors.c b/src/ft_get_colors.c index 47b8265..0f79a7b 100644 --- a/src/ft_get_colors.c +++ b/src/ft_get_colors.c @@ -75,7 +75,7 @@ int8_t return (-1); } if (!ft_check_ext(words[1], ".xpm")) - return (ft_get_f_tex(words, clist)) + return (ft_get_f_tex(words, clist)); if (!(num = ft_split(words[1], ','))) { ft_sprintf(clist->errmsg, FT_ERR_ALLOCATE); @@ -104,6 +104,8 @@ int8_t ft_sprintf(clist->errmsg, FT_ERR_ARGS); return (-1); } + if (!ft_check_ext(words[1], ".xpm")) + return (ft_get_c_tex(words, clist)); if (!(num = ft_split(words[1], ','))) { ft_sprintf(clist->errmsg, FT_ERR_ALLOCATE); |