From bcf268462d5cb83d636195a6eeed270d8477e2ad Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Fri, 17 Feb 2023 07:42:57 +0100 Subject: [PATCH] [ue] Closes #2251, fix shadowed local var. --- spine-cpp/spine-cpp/src/spine/SkeletonBinary.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spine-cpp/spine-cpp/src/spine/SkeletonBinary.cpp b/spine-cpp/spine-cpp/src/spine/SkeletonBinary.cpp index 85a6f79cc..1537ad409 100644 --- a/spine-cpp/spine-cpp/src/spine/SkeletonBinary.cpp +++ b/spine-cpp/spine-cpp/src/spine/SkeletonBinary.cpp @@ -1255,8 +1255,7 @@ Animation *SkeletonBinary::readAnimation(const String &name, DataInput *input, S int frameLast = frameCount - 1; switch (timelineType) { - case ATTACHMENT_DEFORM: { - VertexAttachment *attachment = static_cast(baseAttachment); + case ATTACHMENT_DEFORM: { bool weighted = attachment->_bones.size() > 0; Vector &vertices = attachment->_vertices; int deformLength = weighted ? (int) vertices.size() / 3 * 2 : (int) vertices.size();