Fixed Windows warning.

warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
openmw-35
dteviot 10 years ago
parent f95743ccc3
commit 946dd16696

@ -263,7 +263,7 @@ public:
for (std::vector<PCDT::FNAM>::const_iterator it = pcdt.mFactions.begin(); it != pcdt.mFactions.end(); ++it) for (std::vector<PCDT::FNAM>::const_iterator it = pcdt.mFactions.begin(); it != pcdt.mFactions.end(); ++it)
{ {
ESM::NpcStats::Faction faction; ESM::NpcStats::Faction faction;
faction.mExpelled = it->mFlags & 0x2; faction.mExpelled = (it->mFlags & 0x2) != 0;
faction.mRank = it->mRank; faction.mRank = it->mRank;
faction.mReputation = it->mReputation; faction.mReputation = it->mReputation;
mContext->mPlayer.mObject.mNpcStats.mFactions[it->mFactionName.toString()] = faction; mContext->mPlayer.mObject.mNpcStats.mFactions[it->mFactionName.toString()] = faction;

@ -137,7 +137,7 @@ struct Cell
bool hasWater() const bool hasWater() const
{ {
return (mData.mFlags&HasWater); return (mData.mFlags&HasWater) != 0;
} }
// Restore the given reader to the stored position. Will try to open // Restore the given reader to the stored position. Will try to open

Loading…
Cancel
Save