Merge branch 'dial_fix' into 'master'

[Regression] Fix operations order in the dialogue filtering

See merge request OpenMW/openmw!3305
macos_ci_fix
psi29a 1 year ago
commit 8dd8961737

@ -155,7 +155,7 @@ bool MWDialogue::Filter::testActor(const ESM::DialInfo& info) const
if (!isCreature)
{
MWWorld::LiveCellRef<ESM::NPC>* npc = mActor.get<ESM::NPC>();
if (info.mData.mGender == (npc->mBase->mFlags & ESM::NPC::Female) ? 0 : 1)
if (info.mData.mGender == ((npc->mBase->mFlags & ESM::NPC::Female) ? 0 : 1))
return false;
}

Loading…
Cancel
Save