1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-23 06:41:08 +00:00

Fix operations order

This commit is contained in:
Andrei Kortunov 2023-07-31 20:15:30 +04:00
parent 1d207ed318
commit dee9ebd05e

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