Use slot local variable.

This commit is contained in:
NathanSweet 2016-11-03 16:02:41 +01:00
parent 3212e44aa9
commit 75775bbdac

View File

@ -693,8 +693,7 @@ public class Animation {
frameIndex = binarySearch(frames, time, 1) - 1;
String attachmentName = attachmentNames[frameIndex];
skeleton.slots.get(slotIndex)
.setAttachment(attachmentName == null ? null : skeleton.getAttachment(slotIndex, attachmentName));
slot.setAttachment(attachmentName == null ? null : skeleton.getAttachment(slotIndex, attachmentName));
}
}