mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
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
|
// 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…
Reference in a new issue