game: completely avoid leaking mem when spawning particles by using a static array

This commit is contained in:
2024-01-27 04:17:24 +02:00
parent 292f0058d5
commit 911508b583
2 changed files with 9 additions and 15 deletions
-1
View File
@@ -400,7 +400,6 @@ reset_game :: proc() {
game.board[y][x].value = 0
game.board[y][x].new_value = 0
game.board[y][x].merged = false
delete(game.board[y][x].emitter.particles)
game.board[y][x].emitter = ParticleEmitter{}
}
}