diff --git a/SPID/src/LinkedDistribution.cpp b/SPID/src/LinkedDistribution.cpp index 5bb1d34..c839ac5 100644 --- a/SPID/src/LinkedDistribution.cpp +++ b/SPID/src/LinkedDistribution.cpp @@ -122,11 +122,13 @@ namespace LinkedDistribution if (!Forms::detail::formID_to_form(dataHandler, parentFormIDs.MATCH, parentForms, path, false, false)) { continue; } - // Add to appropriate list. (Note that type inferring doesn't recognize SleepOutfit or DeathItems) + // Add to appropriate list. (Note that type inferring doesn't recognize SleepOutfit, Skin or DeathItems) if (const auto keyword = form->As(); keyword) { keywords.Link(keyword, scope, parentForms, idxOrCount, chance, path); } else if (const auto spell = form->As(); spell) { spells.Link(spell, scope, parentForms, idxOrCount, chance, path); + } else if (const auto levSpell = form->As(); levSpell) { + levSpells.Link(levSpell, scope, parentForms, idxOrCount, chance, path); } else if (const auto perk = form->As(); perk) { perks.Link(perk, scope, parentForms, idxOrCount, chance, path); } else if (const auto shout = form->As(); shout) { @@ -137,8 +139,6 @@ namespace LinkedDistribution outfits.Link(outfit, scope, parentForms, idxOrCount, chance, path); } else if (const auto faction = form->As(); faction) { factions.Link(faction, scope, parentForms, idxOrCount, chance, path); - } else if (const auto skin = form->As(); skin) { - skins.Link(skin, scope, parentForms, idxOrCount, chance, path); } else { auto type = form->GetFormType(); if (type == RE::FormType::Package || type == RE::FormType::FormList) { diff --git a/SPID/src/LookupForms.cpp b/SPID/src/LookupForms.cpp index 50369de..7cc5950 100644 --- a/SPID/src/LookupForms.cpp +++ b/SPID/src/LookupForms.cpp @@ -17,12 +17,14 @@ bool LookupDistributables(RE::TESDataHandler* const dataHandler) auto& genericForms = INI::configs[RECORD::kForm]; for (auto& rawForm : genericForms) { - // Add to appropriate list. (Note that type inferring doesn't recognize SleepOutfit or DeathItems) + // Add to appropriate list. (Note that type inferring doesn't recognize SleepOutfit, Skin or DeathItems) LookupGenericForm(dataHandler, rawForm, [&](bool isValid, auto form, const auto& idxOrCount, const auto& filters, const auto& path) { if (const auto keyword = form->As(); keyword) { keywords.EmplaceForm(isValid, keyword, idxOrCount, filters, path); } else if (const auto spell = form->As(); spell) { spells.EmplaceForm(isValid, spell, idxOrCount, filters, path); + } else if (const auto levSpell = form->As(); levSpell) { + levSpells.EmplaceForm(isValid, levSpell, idxOrCount, filters, path); } else if (const auto perk = form->As(); perk) { perks.EmplaceForm(isValid, perk, idxOrCount, filters, path); } else if (const auto shout = form->As(); shout) { @@ -33,8 +35,6 @@ bool LookupDistributables(RE::TESDataHandler* const dataHandler) outfits.EmplaceForm(isValid, outfit, idxOrCount, filters, path); } else if (const auto faction = form->As(); faction) { factions.EmplaceForm(isValid, faction, idxOrCount, filters, path); - } else if (const auto skin = form->As(); skin) { - skins.EmplaceForm(isValid, skin, idxOrCount, filters, path); } else { auto type = form->GetFormType(); if (type == RE::FormType::Package || type == RE::FormType::FormList) {