Fixes implicit ternary expressions
This commit is contained in:
parent
c85b0a740c
commit
ff26dfa375
345 changed files with 1905 additions and 2336 deletions
|
|
@ -194,8 +194,8 @@ namespace Server.Items
|
|||
PlayerState guildState = PlayerState.Find( m_Guild.Leader );
|
||||
PlayerState targetState = PlayerState.Find( from );
|
||||
|
||||
Faction guildFaction = (guildState == null ? null : guildState.Faction);
|
||||
Faction targetFaction = (targetState == null ? null : targetState.Faction);
|
||||
Faction guildFaction = guildState?.Faction;
|
||||
Faction targetFaction = targetState?.Faction;
|
||||
|
||||
if ( guildFaction != targetFaction || (targetState != null && targetState.IsLeaving) )
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue