浏览代码

Fix -Wshadow warning when compiling with Clang (#607)

mogemimi 9 年之前
父节点
当前提交
fc8505ff81
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-c/src/spine/Animation.c

+ 1 - 1
spine-c/src/spine/Animation.c

@@ -267,7 +267,7 @@ void _spRotateTimeline_apply (const spTimeline* timeline, spSkeleton* skeleton,
 	bone = skeleton->bones[self->boneIndex];
 	bone = skeleton->bones[self->boneIndex];
 
 
 	if (time >= self->frames[self->framesCount - 2]) { /* Time is after last frame. */
 	if (time >= self->frames[self->framesCount - 2]) { /* Time is after last frame. */
-		float amount = bone->data->rotation + self->frames[self->framesCount - 1] - bone->rotation;
+		amount = bone->data->rotation + self->frames[self->framesCount - 1] - bone->rotation;
 		while (amount > 180)
 		while (amount > 180)
 			amount -= 360;
 			amount -= 360;
 		while (amount < -180)
 		while (amount < -180)