Explorar o código

[c] Fixed bug in AttachmentTimeline, wrong order of trinary operator expressions

badlogic %!s(int64=8) %!d(string=hai) anos
pai
achega
37b6fe3c11
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      spine-c/src/spine/Animation.c

+ 1 - 1
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;
 	}