Handle DialInfo::mFactionLess (Bug #3380)

pull/1/head
scrawl 9 years ago
parent 93b2f09224
commit 2ca7415708

@ -62,7 +62,15 @@ bool MWDialogue::Filter::testActor (const ESM::DialInfo& info) const
} }
// NPC faction // NPC faction
if (!info.mFaction.empty()) if (info.mFactionLess)
{
if (isCreature)
return true;
if (!mActor.getClass().getPrimaryFaction(mActor).empty())
return false;
}
else if (!info.mFaction.empty())
{ {
if (isCreature) if (isCreature)
return true; return true;

Loading…
Cancel
Save