diff options
Diffstat (limited to 'src/ft_check_map_line.c')
-rw-r--r-- | src/ft_check_map_line.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_check_map_line.c b/src/ft_check_map_line.c index b9fd636..79e0297 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); } - if (line[i] == 'T') - clist->mlist.istraps = 1; + clist->mlist.istraps = (line[i] == 'T') ? (1) : (0); + clist->mlist.isheals = (line[i] == '+') ? (1) : (0); ft_get_topsp(line[i], clist); return (0); } |