From 73abf154e82546256f4a860c666f1f652767bda9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 15 Mar 2023 15:55:50 +0100 Subject: aa --- editor/save.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'editor/save.cpp') diff --git a/editor/save.cpp b/editor/save.cpp index 8c33b435..8e38b2da 100644 --- a/editor/save.cpp +++ b/editor/save.cpp @@ -45,14 +45,13 @@ void app::do_quickload() return; } fputs("quickload... ", stderr); fflush(stderr); - M->world() = world::deserialize(quicksave_file); + M->reset_world(world::deserialize(quicksave_file)); fputs("done\n", stderr); fflush(stderr); } void app::do_new_file() { - auto& w = M->world(); - w = world{}; + auto& w = M->reset_world(); maybe_initialize_chunk_(chunk_coords{}, w[chunk_coords{}]); } -- cgit v1.2.3