lottie: fix a logic by a mistake.

This commit is contained in:
Hermet Park 2024-05-02 18:56:23 +09:00
parent 3eb3364c60
commit 34b2e3ba37

View file

@ -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<LottieGroup*>(child)->content(id)) return ret;
} else if (child->name && !strcmp(child->name, id)) return child;
}