diff --git a/src/lottie/lottieparser.cpp b/src/lottie/lottieparser.cpp index bd38fbd0c1..1ebf44a416 100644 --- a/src/lottie/lottieparser.cpp +++ b/src/lottie/lottieparser.cpp @@ -1685,8 +1685,10 @@ void LottieParserImpl::getValue(float &val) { if (PeekType() == kArrayType) { EnterArray(); + if (NextArrayValue()) val = GetDouble(); + //discard rest while (NextArrayValue()) { - val = GetDouble(); + GetDouble(); } } else if (PeekType() == kNumberType) { val = GetDouble();