summaryrefslogtreecommitdiffhomepage
path: root/serialize/anim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'serialize/anim.cpp')
-rw-r--r--serialize/anim.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/serialize/anim.cpp b/serialize/anim.cpp
index 42f39328..7be6323b 100644
--- a/serialize/anim.cpp
+++ b/serialize/anim.cpp
@@ -129,11 +129,11 @@ void adl_serializer<floormat::anim_scale>::from_json(const json& j, floormat::an
{
auto factor = (float)j[1];
fm_soft_assert(factor > 0 && factor <= 1);
- val = { { .r = {factor} }, anim_scale_type::ratio };
+ val = {factor};
}
else if (bool is_width = type == "width"_s; is_width || type == "height"_s)
{
- val = { { .f = {is_width, (unsigned)j[1]} }, anim_scale_type::fixed };
+ val = {(unsigned)j[1], is_width};
fm_soft_assert(val.f.width_or_height > 0);
}
else