diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-09 23:46:45 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-10 01:08:23 +0100 |
commit | c7caf58e53975ad0f1d2da88708697c7b1bb5c32 (patch) | |
tree | 75ade1b77ccc52d48dc19da3853211a5675f4134 /serialize/ground-atlas.cpp | |
parent | e9082d38bf47c4083ef3469eb5779a79735f77cf (diff) |
loader, serialize: clean up a bit
Diffstat (limited to 'serialize/ground-atlas.cpp')
-rw-r--r-- | serialize/ground-atlas.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/serialize/ground-atlas.cpp b/serialize/ground-atlas.cpp index 11ef40ef..6844019c 100644 --- a/serialize/ground-atlas.cpp +++ b/serialize/ground-atlas.cpp @@ -26,6 +26,7 @@ void adl_serializer<ground_def>::to_json(json& j, const ground_def& x) void adl_serializer<ground_def>::from_json(const json& j, ground_def& val) { using nlohmann::from_json; + val = {}; val.name = j["name"]; val.size = j["size"]; if (j.contains("pass-mode")) |