From 69889d8a07d98ff910cde208c058c766a75edd1a Mon Sep 17 00:00:00 2001 From: badlogic Date: Wed, 19 Oct 2016 12:00:59 +0200 Subject: [PATCH] [c] Fixes compilation in VS201x --- spine-c/src/spine/Skeleton.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spine-c/src/spine/Skeleton.c b/spine-c/src/spine/Skeleton.c index a193d2bf7..4af6db685 100644 --- a/spine-c/src/spine/Skeleton.c +++ b/spine-c/src/spine/Skeleton.c @@ -188,7 +188,8 @@ static void _sortPathConstraintAttachmentBones(_spSkeleton* const internal, spAt int i = 0; while (i < pathBonesCount) { int boneCount = pathBones[i++]; - for (int n = i + boneCount; i < n; i++) + int n; + for (n = i + boneCount; i < n; i++) _sortBone(internal, bones[pathBones[i]]); } }