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`)){