Browse Source

Merge pull request #321 from ubiyf/master

Fix Bug : Can not build android apk, if not set char* as const.
Nathan Sweet 11 years ago
parent
commit
5abfbe1200
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spine-c/src/spine/SkeletonJson.c

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

@@ -221,7 +221,7 @@ static spAnimation* _spSkeletonJson_readAnimation (spSkeletonJson* self, Json* r
 					if (duration > animation->duration) animation->duration = duration;
 				} else if (strcmp(timelineArray->name, "flipX") == 0 || strcmp(timelineArray->name, "flipY") == 0) {
 					int x = strcmp(timelineArray->name, "flipX") == 0;
-					char* field = x ? "x" : "y";
+					const char* field = x ? "x" : "y";
 					spFlipTimeline *timeline = spFlipTimeline_create(timelineArray->size, x);
 					timeline->boneIndex = boneIndex;
 					for (frame = timelineArray->child, i = 0; frame; frame = frame->next, ++i)