aboutsummaryrefslogtreecommitdiff
path: root/src/tiled
diff options
context:
space:
mode:
Diffstat (limited to 'src/tiled')
-rw-r--r--src/tiled/world.odin4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tiled/world.odin b/src/tiled/world.odin
index c55097a..0a13716 100644
--- a/src/tiled/world.odin
+++ b/src/tiled/world.odin
@@ -47,6 +47,10 @@ load_world :: proc(path: string) -> bool {
}
delete_world :: proc() {
+ for room in world {
+ delete(room.file_name)
+ }
+
delete_map(current_room.tmap)
delete(world)
delete(res_dir)