From 253ba5bd65aea3233a1a3c518b130b7975d03b10 Mon Sep 17 00:00:00 2001 From: AnubisCode Date: Tue, 12 Sep 2017 13:50:34 +0500 Subject: [PATCH] fix spine.setTint --- ts/Spine.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}