summaryrefslogtreecommitdiffhomepage
path: root/editor/save.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/save.cpp')
-rw-r--r--editor/save.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/save.cpp b/editor/save.cpp
index 8e38b2da..6d79bfce 100644
--- a/editor/save.cpp
+++ b/editor/save.cpp
@@ -45,13 +45,14 @@ void app::do_quickload()
return;
}
fputs("quickload... ", stderr); fflush(stderr);
- M->reset_world(world::deserialize(quicksave_file));
+ reset_world(world::deserialize(quicksave_file));
fputs("done\n", stderr); fflush(stderr);
}
void app::do_new_file()
{
- auto& w = M->reset_world();
+ reset_world();
+ auto& w = M->world();
maybe_initialize_chunk_(chunk_coords{}, w[chunk_coords{}]);
}