From b0151c29b4fd94a095279fc84d1d85f312a168fd Mon Sep 17 00:00:00 2001 From: Renee Ibeji Date: Tue, 14 May 2024 09:55:52 +0100 Subject: [PATCH] fix 2 --- sources/chargen.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/chargen.js b/sources/chargen.js index 5c3637c11..7aae0a553 100755 --- a/sources/chargen.js +++ b/sources/chargen.js @@ -672,8 +672,8 @@ $(document).ready(function() { if($(this).data(`layer_1_${getBodyTypeName()}`) === undefined){ previewToDraw.link = $(this).data(`layer_1_${getBodyTypeName()}`); previewToDraw.zPos = $(this).data(`layer_1_zpos`); - layers.push(previewToDraw); } - else{ + layers.push(previewToDraw); + } else{ for(jdx = 1; jdx < 10; jdx++){ if($(this).data(`layer_${jdx}_${getBodyTypeName()}`)){ if(animation === $(this).data(`layer_${jdx}_custom_animation`)){