Update for spine runtime.

This commit is contained in:
flaming0 2013-06-03 20:52:32 +04:00 committed by James Chen
parent a81f2b1303
commit 1d3516da44
2 changed files with 2 additions and 3 deletions

View File

@ -36,8 +36,8 @@ AtlasPage* AtlasPage_create (const char* name) {
}
void AtlasPage_dispose (AtlasPage* self) {
FREE(self->name);
_AtlasPage_disposeTexture(self);
FREE(self->name);
FREE(self);
}

View File

@ -60,14 +60,13 @@ Skeleton* Skeleton_create (SkeletonData* data) {
SlotData *slotData = data->slots[i];
/* Find bone for the slotData's boneData. */
Bone *bone;
Bone* bone = 0;
for (ii = 0; ii < self->boneCount; ++ii) {
if (data->bones[ii] == slotData->boneData) {
bone = self->bones[ii];
break;
}
}
self->slots[i] = Slot_create(slotData, self, bone);
}