fix(dom): fix animation check crash

This commit is contained in:
pollyzhang
2022-07-06 17:29:32 +08:00
committed by churchill-zhang
parent a6e2e2fc6d
commit 87a0fd8554
@@ -203,8 +203,11 @@ std::shared_ptr<ParseAnimationResult> ParseAnimation(const std::shared_ptr<Ctx>&
context->ThrowException("animation start_value error");
return nullptr;
}
animation_id = footstone::check::checked_numeric_cast<int32_t, uint32_t>(id);
// todo 避免 release checked_numeric_cast crash
flag = footstone::check::numeric_cast(id, animation_id);
if (!flag) {
context->ThrowException("animation id error");
return nullptr;
}
}
double to_value;