Skip to content

Commit

Permalink
Added also an NPC's baseTemplateForm to list of IDs.
Browse files Browse the repository at this point in the history
  • Loading branch information
adya committed Apr 6, 2024
1 parent 830e42a commit c7bb903
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SPID/src/LookupNPC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ namespace NPC
return RE::BSContainer::ForEachResult::kContinue;
});

if (npc->baseTemplateForm) {
IDs.emplace_back(npc->baseTemplateForm);
}

if (const auto extraLvlCreature = a_actor->extraList.GetByType<RE::ExtraLeveledCreature>()) {
if (const auto originalBase = extraLvlCreature->originalBase) {
IDs.emplace_back(originalBase);
Expand Down

0 comments on commit c7bb903

Please sign in to comment.