From 9dfa1b4ef8e1d19c61badc6ebbafe06d37086427 Mon Sep 17 00:00:00 2001 From: powerof3 Date: Mon, 4 Mar 2024 18:23:42 +0000 Subject: [PATCH] maintenance --- SPID/include/DistributeManager.h | 2 +- SPID/src/Distribute.cpp | 6 +++--- SPID/src/DistributeManager.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/SPID/include/DistributeManager.h b/SPID/include/DistributeManager.h index d887ac9..ea4d54c 100644 --- a/SPID/include/DistributeManager.h +++ b/SPID/include/DistributeManager.h @@ -9,7 +9,7 @@ namespace Distribute namespace detail { bool should_process_NPC(RE::TESNPC* a_npc, RE::BGSKeyword* a_keyword = processed); - + void equip_worn_outfit(RE::Actor* actor, const RE::BGSOutfit* a_outfit); void force_equip_outfit(RE::Actor* a_actor, const RE::TESNPC* a_npc); } diff --git a/SPID/src/Distribute.cpp b/SPID/src/Distribute.cpp index 4dba983..1545184 100644 --- a/SPID/src/Distribute.cpp +++ b/SPID/src/Distribute.cpp @@ -151,9 +151,9 @@ namespace Distribute if (!actor->IsDead()) { actor->ResetInventory(false); } - + for_each_form(a_npcData, Forms::outfits, a_input, [&](auto* a_outfit) { - if (detail::can_equip_outfit(npc, a_outfit)) { + if (detail::can_equip_outfit(npc, a_outfit)) { actor->RemoveOutfitItems(npc->defaultOutfit); npc->defaultOutfit = a_outfit; npc->AddKeyword(processedOutfit); @@ -161,7 +161,7 @@ namespace Distribute } return false; }); - + for_each_form(a_npcData, Forms::items, a_input, [&](std::map& a_objects, const bool a_hasLvlItem) { if (npc->AddObjectsToContainer(a_objects, npc)) { if (a_hasLvlItem) { diff --git a/SPID/src/DistributeManager.cpp b/SPID/src/DistributeManager.cpp index 3415966..d22084f 100644 --- a/SPID/src/DistributeManager.cpp +++ b/SPID/src/DistributeManager.cpp @@ -172,7 +172,7 @@ namespace Distribute if (const auto processLists = RE::ProcessLists::GetSingleton()) { timer.start(); - + for (auto& actorHandle : processLists->lowActorHandles) { if (const auto& actor = actorHandle.get()) { if (const auto npc = actor->GetActorBase(); npc && detail::should_process_NPC(npc)) { @@ -182,7 +182,7 @@ namespace Distribute } } } - timer.end(); + timer.end(); } LogResults(actorCount);