mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
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)
|
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…
Reference in a new issue