1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-09 18:40:14 +00:00

Merge branch 'dial_fix' into 'master'

[Regression] Fix operations order in the dialogue filtering

See merge request OpenMW/openmw!3305
This commit is contained in:
psi29a 2023-07-31 19:42:07 +00:00
commit 8dd8961737

View File

@ -155,7 +155,7 @@ bool MWDialogue::Filter::testActor(const ESM::DialInfo& info) const
if (!isCreature) if (!isCreature)
{ {
MWWorld::LiveCellRef<ESM::NPC>* npc = mActor.get<ESM::NPC>(); 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; return false;
} }