diff options
Diffstat (limited to 'src/ft_select_get.c')
-rw-r--r-- | src/ft_select_get.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ft_select_get.c b/src/ft_select_get.c index 0edc4f2..8c1df38 100644 --- a/src/ft_select_get.c +++ b/src/ft_select_get.c @@ -71,12 +71,14 @@ static int8_t ret = 0; while (ft_strncmp(words[0], clist->ref[ret], 3) && clist->ref[ret][0]) ret++; - if (ret == 21) + if (ret == 22) ret = FT_PARSE_END_RET; ret = ft_check_exists(ret, clist); ret = ft_check_exists_two(ret, clist); if (ret > 13 && ret < 21) ret = 5; + if (ret == 21) + clist->mlist.enemy = 2; return (ret); } @@ -90,7 +92,7 @@ int8_t ft_free_words(words); return (FT_PARSE_END_RET); } - if (id < 0 || clist->get_ptr[id](words, clist) < 0) + if (id < 0 || (id != 21 && clist->get_ptr[id](words, clist) < 0)) { ft_free_words(words); return ((id < 0) ? (-2) : (-1)); |