diff options
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r-- | src/ft_init_lists.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c index 25b8eb6..2105a64 100644 --- a/src/ft_init_lists.c +++ b/src/ft_init_lists.c @@ -115,6 +115,11 @@ int8_t return (-1); if (ft_init_sprites(&clist->sprites) < 0) return (-1); + if (!(clist->big_t = (float**)ft_calloc(2, sizeof(float*))) || + !(clist->big_t[0] = (float*)ft_calloc(1, sizeof(float))) || + !(clist->big_t[1] = (float*)ft_calloc(1, sizeof(float)))) + return (-1); + clist->big_t_val = 2; ft_sprintf(clist->fps_count, "fps: 60"); clist->isdead = 0; clist->moves = 0; |