aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_music.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-03 16:57:36 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-03 16:57:36 +0100
commitd4f853942aa2031c4bd85539ef9f3470967ffdc5 (patch)
treed2c5ffb0027860722185bf26b526757360ff1584 /src/ft_get_music.c
parenttweaks (diff)
parentGoing full stack is bav (diff)
download42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.tar.gz
42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.tar.bz2
42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.tar.xz
42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.tar.zst
42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.zip
Merge branch 'bmp'
Diffstat (limited to '')
-rw-r--r--src/ft_get_music.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ft_get_music.c b/src/ft_get_music.c
index df65a7f..eb25af3 100644
--- a/src/ft_get_music.c
+++ b/src/ft_get_music.c
@@ -49,18 +49,18 @@ int8_t
ft_sprintf(clist->errmsg, FT_ERR_NOT_A_WAV);
return (-1);
}
- ft_memdel((void**)&clist->mlist->music_path);
- if (!(clist->mlist->music_path = ft_strdup(*(words + 1))))
+ ft_memdel((void**)&clist->mlist.music_path);
+ if (!(clist->mlist.music_path = ft_strdup(*(words + 1))))
{
ft_sprintf(clist->errmsg, FT_ERR_ALLOCATE);
return (-1);
}
- if (ft_check_not_found(clist->mlist->music_path) < 0)
+ if (ft_check_not_found(clist->mlist.music_path) < 0)
{
ft_sprintf(clist->errmsg, FT_ERR_RD_MUSIC);
return (-1);
}
- clist->mlist->ismusic = 1;
- ft_set_music_cmd(clist->mlist);
+ clist->mlist.ismusic = 1;
+ ft_set_music_cmd(&clist->mlist);
return (0);
}