mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Buildsystem/MSVC: Warning fixes
C4800 'type' : forcing value to bool 'true' or 'false' (performance warning) C4127 conditional expression is constant
This commit is contained in:
@@ -59,7 +59,7 @@ bool ReputationMgr::IsAtWar(FactionEntry const* factionEntry) const
|
||||
return false;
|
||||
|
||||
if (FactionState const* factionState = GetState(factionEntry))
|
||||
return (factionState->Flags & FACTION_FLAG_AT_WAR);
|
||||
return (factionState->Flags & FACTION_FLAG_AT_WAR) != 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user