Mario Zechner 3 жил өмнө
parent
commit
316c114855

+ 4 - 4
spine-c/spine-c/src/spine/AnimationState.c

@@ -595,10 +595,10 @@ _spAnimationState_setAttachment(spAnimationState *self, spSkeleton *skeleton, sp
 
 /* @param target After the first and before the last entry. */
 static int binarySearch1(float *values, int valuesLength, float target) {
-    for (int i = 1; i < valuesLength; i++) {
-        if (values[i] > target) return (int) (i - 1);
-    }
-    return (int) valuesLength - 1;
+	for (int i = 1; i < valuesLength; i++) {
+		if (values[i] > target) return (int) (i - 1);
+	}
+	return (int) valuesLength - 1;
 }
 
 void _spAnimationState_applyAttachmentTimeline(spAnimationState *self, spTimeline *timeline, spSkeleton *skeleton,