diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-28 13:29:14 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-28 13:29:14 +0200 |
commit | edf004da430890c24a0719395549cc6f1d6618e5 (patch) | |
tree | 5d1e056e09c52c578b7c22a72012151b71e669f1 /editor | |
parent | dd5c8f0b20304d4f128ed9c6f6e80505e55970b8 (diff) |
fix crash
Diffstat (limited to 'editor')
-rw-r--r-- | editor/json.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/editor/json.cpp b/editor/json.cpp index 40c26952..777f9d22 100644 --- a/editor/json.cpp +++ b/editor/json.cpp @@ -39,13 +39,7 @@ void app::do_quicksave() if (Path::exists(quicksave_tmp)) Path::remove(quicksave_tmp); fputs("quicksave...", stderr); fflush(stderr); -#if 0 -#ifdef FM_SAVE_BINARY - json_helper::to_binary(world, quicksave_tmp); -#else - json_helper::to_json(world, quicksave_tmp); -#endif -#endif + world.serialize(quicksave_tmp); Path::move(quicksave_tmp, quicksave_file); fputs(" done\n", stderr); fflush(stderr); } |