1
0
Fork 1
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:
scrawl 2016-05-01 00:10:50 +02:00
parent 93b2f09224
commit 2ca7415708

View file

@ -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;