diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-15 15:55:50 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-15 16:22:16 +0100 |
| commit | 73abf154e82546256f4a860c666f1f652767bda9 (patch) | |
| tree | 8dda30884e3c8da99f1ea7ebc9232890eeab8bcc /editor/save.cpp | |
| parent | 23eae734c5e8a49c02e48fe0b401d610abfee9c8 (diff) | |
aa
Diffstat (limited to 'editor/save.cpp')
| -rw-r--r-- | editor/save.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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{}]); } |
