diff --git a/SPID/src/OutfitManager.cpp b/SPID/src/OutfitManager.cpp index 847b941..2442636 100644 --- a/SPID/src/OutfitManager.cpp +++ b/SPID/src/OutfitManager.cpp @@ -288,7 +288,7 @@ namespace Outfits const auto& actor = it.first; const auto& replacement = it.second; if (auto newIt = newReplacements.find(actor->formID); newIt != newReplacements.end()) { // If we have some new replacement for this actor - newIt->second.original = replacement.original; // we want to forward original outfit from the previous replacement to the new one. (so that a chain of outfits like this A->B->C becomes A->C and we'll be able to revert to the very first outfit) + newIt->second.original = replacement.original; // we want to forward original outfit from the previous replacement to the new one. (so that a chain of outfits like this A->B->C becomes A->C and we'll be able to revert to the very first outfit) ++updatedCount; #ifndef NDEBUG logger::info("\tUpdating Outfit Replacement for {}", *actor); diff --git a/SPID/src/main.cpp b/SPID/src/main.cpp index 4cdf01b..384dc61 100644 --- a/SPID/src/main.cpp +++ b/SPID/src/main.cpp @@ -1,9 +1,9 @@ +#include "DeathDistribution.h" #include "DistributeManager.h" #include "LookupConfigs.h" #include "LookupForms.h" -#include "PCLevelMultManager.h" #include "OutfitManager.h" -#include "DeathDistribution.h" +#include "PCLevelMultManager.h" bool shouldLookupForms{ false }; bool shouldLogErrors{ false }; @@ -44,7 +44,7 @@ void MessageHandler(SKSE::MessagingInterface::Message* a_message) Distribute::Setup(); } - Outfits::Manager::Register(); // Regardless of distribution, we register outfits manager to handle save/load events. It should revert all previously distributed outfits even if no _DISTR files are present. + Outfits::Manager::Register(); // Regardless of distribution, we register outfits manager to handle save/load events. It should revert all previously distributed outfits even if no _DISTR files are present. if (shouldLogErrors) { const auto error = std::format("[SPID] Errors found when reading configs. Check {}.log in {} for more info\n", Version::PROJECT, SKSE::log::log_directory()->string());