[c] Fixed sorting of path constraints when slot attachment is null.

This commit is contained in:
badlogic 2017-06-19 17:41:08 +02:00
parent 2a37edd8a6
commit 9f569fef3b

View File

@ -269,7 +269,7 @@ static void _sortPathConstraint(_spSkeleton* const internal, spPathConstraint* c
_sortPathConstraintAttachment(internal, skeleton->data->skins[i], slotIndex, slotBone);
attachment = slot->attachment;
if (attachment->type == SP_ATTACHMENT_PATH) _sortPathConstraintAttachmentBones(internal, attachment, slotBone);
if (attachment && attachment->type == SP_ATTACHMENT_PATH) _sortPathConstraintAttachmentBones(internal, attachment, slotBone);
constrained = constraint->bones;
boneCount = constraint->bonesCount;