fix memory leak in waves by clearing out the recipes before creating a new spawner
This commit is contained in:
@@ -14,6 +14,7 @@ run :: proc() {
|
||||
delete(world.path)
|
||||
delete(world.towers)
|
||||
delete(world.events)
|
||||
delete(world.spawner.recipe)
|
||||
}
|
||||
|
||||
for !rl.WindowShouldClose() {
|
||||
|
||||
Reference in New Issue
Block a user