From c7bb9039c9a3f8c33d239ad05564a297c0c1a2b9 Mon Sep 17 00:00:00 2001 From: Arkadii Hlushchevskyi Date: Sun, 7 Apr 2024 00:07:10 +0300 Subject: [PATCH] Added also an NPC's baseTemplateForm to list of IDs. --- SPID/src/LookupNPC.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SPID/src/LookupNPC.cpp b/SPID/src/LookupNPC.cpp index b164e6b..a839e5c 100644 --- a/SPID/src/LookupNPC.cpp +++ b/SPID/src/LookupNPC.cpp @@ -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()) { if (const auto originalBase = extraLvlCreature->originalBase) { IDs.emplace_back(originalBase);