summaryrefslogtreecommitdiffhomepage
path: root/serialize/anim.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-09 23:46:45 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-10 01:08:23 +0100
commitc7caf58e53975ad0f1d2da88708697c7b1bb5c32 (patch)
tree75ade1b77ccc52d48dc19da3853211a5675f4134 /serialize/anim.cpp
parente9082d38bf47c4083ef3469eb5779a79735f77cf (diff)
loader, serialize: clean up a bit
Diffstat (limited to 'serialize/anim.cpp')
-rw-r--r--serialize/anim.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/serialize/anim.cpp b/serialize/anim.cpp
index 4b5dee77..cd1f5e5c 100644
--- a/serialize/anim.cpp
+++ b/serialize/anim.cpp
@@ -152,6 +152,7 @@ void adl_serializer<anim_scale>::from_json(const json& j, anim_scale& val)
{
fm_soft_assert(j.is_array());
fm_soft_assert(j.size() == 2);
+ val = {};
StringView type = j[0];
if (type == "factor"_s)
{