Rescan new items without reverting
This commit is contained in:
parent
cca2fdafc1
commit
e83e23ff3d
Binary file not shown.
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user