1

Rescan new items without reverting

This commit is contained in:
Eddoursul 2022-07-02 23:22:58 +02:00
parent cca2fdafc1
commit e83e23ff3d
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -496,6 +496,7 @@ namespace ArtifactTracker
for (const auto& item : inv) {
if (item.second.first > 0) {
a_targetList->AddForm(item.first);
ListRemoveItem(g_listNew, item.first);
}
}
}

View File

@ -61,9 +61,8 @@ namespace Papyrus::PapyrusFunctions
inline void RescanNewArtifacts(RE::StaticFunctionTag*)
{
ListRevert(ArtifactTracker::g_listNew);
for (auto const& item : ArtifactTracker::g_artifactMap) {
if (!ArtifactTracker::g_listStored->HasForm(item.second) && !ArtifactTracker::g_listFound->HasForm(item.second)) {
if (!ArtifactTracker::g_listNew->HasForm(item.second) && !ArtifactTracker::g_listStored->HasForm(item.second) && !ArtifactTracker::g_listFound->HasForm(item.second)) {
ArtifactTracker::g_listNew->AddForm(item.second);
}
}