forked from teamnwah/openmw-tes3coop
Handle DialInfo::mFactionLess (Bug #3380)
This commit is contained in:
parent
93b2f09224
commit
2ca7415708
1 changed files with 9 additions and 1 deletions
|
@ -62,7 +62,15 @@ bool MWDialogue::Filter::testActor (const ESM::DialInfo& info) const
|
|||
}
|
||||
|
||||
// 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)
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue