forked from mirror/openmw-tes3mp
Fixed Windows warning.
warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
This commit is contained in:
parent
f95743ccc3
commit
946dd16696
2 changed files with 2 additions and 2 deletions
|
@ -263,7 +263,7 @@ public:
|
|||
for (std::vector<PCDT::FNAM>::const_iterator it = pcdt.mFactions.begin(); it != pcdt.mFactions.end(); ++it)
|
||||
{
|
||||
ESM::NpcStats::Faction faction;
|
||||
faction.mExpelled = it->mFlags & 0x2;
|
||||
faction.mExpelled = (it->mFlags & 0x2) != 0;
|
||||
faction.mRank = it->mRank;
|
||||
faction.mReputation = it->mReputation;
|
||||
mContext->mPlayer.mObject.mNpcStats.mFactions[it->mFactionName.toString()] = faction;
|
||||
|
|
|
@ -137,7 +137,7 @@ struct Cell
|
|||
|
||||
bool hasWater() const
|
||||
{
|
||||
return (mData.mFlags&HasWater);
|
||||
return (mData.mFlags&HasWater) != 0;
|
||||
}
|
||||
|
||||
// Restore the given reader to the stored position. Will try to open
|
||||
|
|
Loading…
Reference in a new issue