aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--map/map_two.cub2
-rw-r--r--src/ft_get_tex.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/map/map_two.cub b/map/map_two.cub
new file mode 100644
index 0000000..2f45994
--- /dev/null
+++ b/map/map_two.cub
@@ -0,0 +1,2 @@
+R 800 600
+NO ./path_to_the_north_texture \ No newline at end of file
diff --git a/src/ft_get_tex.c b/src/ft_get_tex.c
index 5bd7a4f..65c8441 100644
--- a/src/ft_get_tex.c
+++ b/src/ft_get_tex.c
@@ -37,7 +37,10 @@ ft_get_tex_so(int fd, t_win *wlist)
return (ft_exit(5, wlist));
if (!(*words) || ft_strcmp(*words, "SO")
|| !(*(words + 1)) || (*(words + 2)))
+ {
+ /* ft_free_words(words); */
return (ft_map_error(3, wlist));
+ }
ft_memdel(wlist->clist->so_tex_path);
len = ft_strlen(*(words + 1));
if (!(wlist->clist->so_tex_path = (char*)malloc((len + 1) * sizeof(char))))