Skip to content

Commit

Permalink
maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
powerof3 authored and github-actions[bot] committed Nov 16, 2022
1 parent f00888f commit 43b5168
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cmake/sourcelist.cmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
set(sources ${sources}
src/Dependencies.cpp
src/Graphics.cpp
src/PCH.cpp
src/Papyrus.cpp
src/Patches.cpp
src/Serialization.cpp
src/graphics.cpp
src/main.cpp
)
2 changes: 1 addition & 1 deletion include/Patches.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ namespace FEC
{
bool CanDeathEffectsBeAdded(RE::TESNPC* a_npc);

void Install();
void Install();
}
}
2 changes: 1 addition & 1 deletion src/Papyrus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ namespace FEC::Papyrus
if (std::ranges::find(underwear::underwears, a_geometry->name.c_str()) != underwear::underwears.end()) {
GRAPHICS::SET::Toggle(root, a_geometry, true);
}
return RE::BSVisit::BSVisitControl::kContinue;
return RE::BSVisit::BSVisitControl::kContinue;
});
});
}
Expand Down
4 changes: 2 additions & 2 deletions src/Patches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ namespace FEC
}

if (a_npc->HasApplicableKeywordString(keyword::NPC)) {
const auto race = a_npc->GetRace();
return !(race && (race->IsChildRace() || string::icontains(race->GetFormEditorID(), "Child")));
const auto race = a_npc->GetRace();
return !(race && (race->IsChildRace() || string::icontains(race->GetFormEditorID(), "Child")));
}

if (a_npc->HasApplicableKeywordString(keyword::Creature) || a_npc->HasApplicableKeywordString(keyword::Animal)) {
Expand Down
6 changes: 3 additions & 3 deletions src/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ namespace FEC::GRAPHICS
if (a_setData) {
if (const auto data = a_root->GetExtraData<RE::NiStringsExtraData>(extra::TOGGLE); data) {
a_toggle ?
data->Insert(a_nodeName) :
data->Insert(a_nodeName) :
data->Remove(a_nodeName);
} else if (a_toggle) {
const std::vector<RE::BSFixedString> vec{ a_nodeName };
Expand All @@ -84,7 +84,7 @@ namespace FEC::GRAPHICS
if (a_setData) {
if (const auto data = a_root->GetExtraData<RE::NiStringsExtraData>(extra::TOGGLE); data) {
a_toggle ?
data->Insert(a_node->name) :
data->Insert(a_node->name) :
data->Remove(a_node->name);
} else if (a_toggle) {
const std::vector<RE::BSFixedString> vec{ a_node->name };
Expand Down Expand Up @@ -383,7 +383,7 @@ namespace FEC::GRAPHICS

if (const auto& biped = a_actor->GetCurrentBiped(); biped) {
for (auto& slot : slot::headSlots) {
if (const auto node = biped->objects[slot].partClone; node && node->HasShaderType(RE::BSShaderMaterial::Feature::kHairTint)) {
if (const auto node = biped->objects[slot].partClone; node && node->HasShaderType(RE::BSShaderMaterial::Feature::kHairTint)) {
node->UpdateHairColor(colorForm->color);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void OnInit(SKSE::MessagingInterface::Message* a_msg)
FEC::PATCH::Install();
FEC::DISTRIBUTE::Install();

FEC::Serialization::Manager::Register();
FEC::Serialization::Manager::Register();
}
break;
case SKSE::MessagingInterface::kPostLoadGame:
Expand Down

0 comments on commit 43b5168

Please sign in to comment.