Fixed attachAll.

This commit is contained in:
NathanSweet 2013-06-11 18:18:42 +02:00
parent 4a03850829
commit fa0267e9e2

View File

@ -33,7 +33,7 @@ public class Skin {
/** Attach each attachment in this skin if the corresponding attachment in the old skin is currently attached. */
public function attachAll (skeleton:Skeleton, oldSkin:Skin) : void {
for each (var key:String in oldSkin.attachments) {
for (var key:String in oldSkin.attachments) {
var colon:int = key.indexOf(":");
var slotIndex:int = parseInt(key.substring(0, colon));
var name:String = key.substring(colon + 1);