diff --git a/ts/Spine.ts b/ts/Spine.ts index 1b84471..86d4f94 100644 --- a/ts/Spine.ts +++ b/ts/Spine.ts @@ -127,7 +127,7 @@ module PhaserSpine { for(let i = 0; i < slots.length; i++) { let slot = slots[i]; - slot.currentSprite.tint = tint; + if(slot.currentSprite) slot.currentSprite.tint = tint; } } @@ -481,4 +481,4 @@ module PhaserSpine { return newSkin; } } -} \ No newline at end of file +}