From f07d4c3c6546cf6bdac38cd62dd8dd74a3238fb2 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Tue, 9 Apr 2024 11:22:54 +0200 Subject: [PATCH] [cpp] Fix local var hidden warning. --- spine-cpp/spine-cpp/src/spine/SkeletonJson.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-cpp/spine-cpp/src/spine/SkeletonJson.cpp b/spine-cpp/spine-cpp/src/spine/SkeletonJson.cpp index dd578e0cd..b769cd0f3 100644 --- a/spine-cpp/spine-cpp/src/spine/SkeletonJson.cpp +++ b/spine-cpp/spine-cpp/src/spine/SkeletonJson.cpp @@ -1164,7 +1164,7 @@ Animation *SkeletonJson::readAnimation(Json *root, SkeletonData *skeletonData) { timelines.add(readTimeline(timelineMap->_child, timeline, 0, 1)); } else if (strcmp(timelineMap->_name, "inherit") == 0) { InheritTimeline *timeline = new (__FILE__, __LINE__) InheritTimeline(frames, boneIndex); - Json *keyMap = timelineMap->_child; + keyMap = timelineMap->_child; for (frame = 0;; frame++) { float time = Json::getFloat(keyMap, "time", 0); const char *value = Json::getString(keyMap, "value", "normal");