Add brackets around a correct expression to fix coverity warning

sceneinput
scrawl 10 years ago
parent ebdd5dc993
commit 667c80fb2a

@ -622,7 +622,7 @@ void NpcAnimation::updateParts()
continue;
}
if (!mNpc->isMale() != (bodypart.mData.mFlags & ESM::BodyPart::BPF_Female))
if ((!mNpc->isMale()) != (bodypart.mData.mFlags & ESM::BodyPart::BPF_Female))
{
// Allow opposite gender's parts as fallback if parts for our gender are missing
BodyPartMapType::const_iterator bIt = sBodyPartMap.lower_bound(BodyPartMapType::key_type(bodypart.mData.mPart));

Loading…
Cancel
Save