diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-05 08:34:33 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-05 08:34:33 +0100 |
commit | 4138f9371d67f0f049749123ac44b39f25020dcd (patch) | |
tree | 18533ce33c8f3b78303ea57f5df8bb5b825c4178 /serialize | |
parent | b29f30b6d1fe1e4fc366d094dd6072321ea0ae38 (diff) |
serialize/json: workaround msvc bitfield bug
Diffstat (limited to 'serialize')
-rw-r--r-- | serialize/wall-atlas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/serialize/wall-atlas.cpp b/serialize/wall-atlas.cpp index 23fbf1b3..4a709060 100644 --- a/serialize/wall-atlas.cpp +++ b/serialize/wall-atlas.cpp @@ -48,9 +48,9 @@ void read_frameset_metadata(const nlohmann::json& j, wall_frames& val, size_t& r if (j.contains("from-rotation"s)) val.from_rotation = (uint8_t)rotation_from_name(std::string{j["from-rotation"s]}); if (j.contains("mirrored"s)) - val.mirrored = j["mirrored"s]; + val.mirrored = !!j["mirrored"s]; if (j.contains("use-default-tint"s)) - val.use_default_tint = j["use-default-tint"s]; + val.use_default_tint = !!j["use-default-tint"s]; } void write_frameset_metadata(nlohmann::json& j, const wall_atlas& a, const wall_frames& val, size_t rot) |