From 0e32238505fe72caaabaaf86e52cd3651c99cbd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?gr=C3=A9goire=20parant?= Date: Thu, 6 May 2021 19:58:08 +0200 Subject: [PATCH] HotFix custom WOKA (#999) --- front/src/Phaser/Login/CustomizeScene.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/Phaser/Login/CustomizeScene.ts b/front/src/Phaser/Login/CustomizeScene.ts index 673ba20a..25f109dc 100644 --- a/front/src/Phaser/Login/CustomizeScene.ts +++ b/front/src/Phaser/Login/CustomizeScene.ts @@ -40,7 +40,7 @@ export class CustomizeScene extends AbstractCharacterScene { this.layers = loadAllLayers(this.load); this.loadCustomSceneSelectCharacters().then((bodyResourceDescriptions) => { bodyResourceDescriptions.forEach((bodyResourceDescription) => { - if(!bodyResourceDescription.level){ + if(bodyResourceDescription.level == undefined || bodyResourceDescription.level < 0 || bodyResourceDescription.level > 5 ){ throw 'Texture level is null'; } this.layers[bodyResourceDescription.level].unshift(bodyResourceDescription);