mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-11 04:56:58 +03:00
Fix operations order
This commit is contained in:
parent
1d207ed318
commit
dee9ebd05e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue