From 6ed3446a0f32cb9d75715102d00d1db2c22e7a03 Mon Sep 17 00:00:00 2001 From: Daniel Bross Date: Sun, 22 Dec 2024 21:54:00 +0100 Subject: [PATCH] Clean-up --- core/scene.jai | 1 + 1 file changed, 1 insertion(+) diff --git a/core/scene.jai b/core/scene.jai index 5f5e3e7..c8cbbec 100644 --- a/core/scene.jai +++ b/core/scene.jai @@ -135,6 +135,7 @@ unload_scene :: (scene: *Scene) { switch_to_scene :: (scene_name: string) { new_scene := load_scene(scene_name); + unload_scene(engine.current_scene); engine.current_scene = new_scene;