From 37b6fe3c112c1fdb2aabcd46f06d46b94fb7e024 Mon Sep 17 00:00:00 2001 From: badlogic Date: Tue, 22 Nov 2016 13:52:19 +0100 Subject: [PATCH] [c] Fixed bug in AttachmentTimeline, wrong order of trinary operator expressions --- spine-c/src/spine/Animation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-c/src/spine/Animation.c b/spine-c/src/spine/Animation.c index 3cbb7721a..23bf646a2 100644 --- a/spine-c/src/spine/Animation.c +++ b/spine-c/src/spine/Animation.c @@ -611,7 +611,7 @@ void _spAttachmentTimeline_apply (const spTimeline* timeline, spSkeleton* skelet if (mixingOut && setupPose) { const char* attachmentName = slot->data->attachmentName; - spSlot_setAttachment(slot, attachmentName ? 0 : spSkeleton_getAttachmentForSlotIndex(skeleton, self->slotIndex, attachmentName)); + spSlot_setAttachment(slot, attachmentName ? spSkeleton_getAttachmentForSlotIndex(skeleton, self->slotIndex, attachmentName) : 0); return; }