centralized malloc system

This commit is contained in:
hugogogo
2022-03-24 21:53:03 +01:00
parent f37f2891a4
commit 2e6374b4d9
10 changed files with 261 additions and 16 deletions

View File

@@ -4,7 +4,7 @@ t_game *init_game(void)
{
t_game *game;
game = malloc(sizeof(t_game));
game = gmalloc(sizeof(t_game));
// player first position
game->plr_x = 16;
game->plr_y = 16;