diff options
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r-- | src/ft_init_lists.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c index 95f0488..90b8638 100644 --- a/src/ft_init_lists.c +++ b/src/ft_init_lists.c @@ -67,6 +67,7 @@ static t_cub *ft_init_cub(void) { t_cub *clist; + uint8_t i; if (!(clist = (t_cub*)malloc(sizeof(t_cub)))) return (NULL); @@ -74,6 +75,12 @@ static t_cub !(clist->mlist = ft_init_map())) return (NULL); ft_bzero(clist->errmsg, 40); + i = 0; + while (i < 5) + { + clist->key_input[i] = -1; + i++; + } clist->minimap = 0; clist->f_rgb = ft_init_rgb(); clist->c_rgb = ft_init_rgb(); |