From 8998478510fba3fd77bdc19a0b503643362d332c Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 18 Mar 2020 21:38:00 +0100 Subject: Works fine --- src/ft_check_map_line.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ft_check_map_line.c') diff --git a/src/ft_check_map_line.c b/src/ft_check_map_line.c index 79e0297..50464a9 100644 --- a/src/ft_check_map_line.c +++ b/src/ft_check_map_line.c @@ -37,8 +37,8 @@ static int8_t ft_sprintf(clist->errmsg, FT_ERR_MULT_NLVL); return (-1); } - clist->mlist.istraps = (line[i] == 'T') ? (1) : (0); - clist->mlist.isheals = (line[i] == '+') ? (1) : (0); + clist->mlist.istraps = (line[i] == 'T') ? (1) : (clist->mlist.istraps); + clist->mlist.isheals = (line[i] == '+') ? (1) : (clist->mlist.isheals); ft_get_topsp(line[i], clist); return (0); } -- cgit v1.2.3