diff --git a/js/spniClothing.js b/js/spniClothing.js index d4dd447ea57e463ff89f666f7ac9ab298f1700f2..e99db650bd4c5240c950f7179d0ba5bccdd6acf7 100644 --- a/js/spniClothing.js +++ b/js/spniClothing.js @@ -101,7 +101,7 @@ function getClothingTrigger (player, clothing, removed) { if (type == IMPORTANT_ARTICLE || type == MAJOR_ARTICLE) { if (pos == FULL_ARTICLE) { if (!player.clothing.some(function(c) { - return c.position == LOWER_ARTICLE && c !== clothing && [IMPORTANT_ARTICLE, MAJOR_ARTICLE].indexOf(c.position) >= 0; + return c.position == LOWER_ARTICLE && c !== clothing && [IMPORTANT_ARTICLE, MAJOR_ARTICLE].indexOf(c.type) >= 0; })) { // If removing this article exposes the crotch, // pretend that it's an lower body article, even if it