diff --git a/src/loaders/lottie/tvgLottieModel.h b/src/loaders/lottie/tvgLottieModel.h index 7400a4a1..41ab5b3d 100644 --- a/src/loaders/lottie/tvgLottieModel.h +++ b/src/loaders/lottie/tvgLottieModel.h @@ -587,7 +587,7 @@ struct LottieGroup : LottieObject //source has children, find recursively. for (auto c = children.begin(); c < children.end(); ++c) { auto child = *c; - if (child->type == LottieObject::Type::Group || type == LottieObject::Type::Layer) { + if (child->type == LottieObject::Type::Group || child->type == LottieObject::Type::Layer) { if (auto ret = static_cast(child)->content(id)) return ret; } else if (child->name && !strcmp(child->name, id)) return child; }