From 34b2e3ba37a8ca07ee56a904b9ea3be44c521165 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 2 May 2024 18:56:23 +0900 Subject: [PATCH] lottie: fix a logic by a mistake. --- src/loaders/lottie/tvgLottieModel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }