Преглед на файлове

fix `SchoolOutfit` in `intro_initialization`

Stephan Fuchs преди 3 месеца
родител
ревизия
48e182e1dc
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      sugarcube/src/start/intro_initialization.tw

+ 1 - 1
sugarcube/src/start/intro_initialization.tw

@@ -238,7 +238,7 @@
 <<set _currentOutfit = $wardrobe.wornItemIds>>
 <<run $wardrobe.outfitAdd('Default',_currentOutfit)>>
 
-<<set _anySchoolClothingItems = $wardrobe.itemsFiltered({subtype:'school'})>>
+<<set _anySchoolClothingItems = Object.values($wardrobe.itemsFiltered({subtype:'school'}))>>
 <<if _anySchoolClothingItems.length > 0>>
 	<<set _schoolOutfit = clone(_currentOutfit)>>
 	<<set _anySchoolClothingItemId = _anySchoolClothingItems[0].id>>