Fixes sequential checks

This commit is contained in:
Kamron Batman 2018-09-14 13:00:41 -07:00
parent 83dcf536d8
commit 42d0b6271f
67 changed files with 99 additions and 99 deletions

View file

@ -118,10 +118,10 @@ namespace Server.Factions
PlayerState pl = PlayerState.Find( m_Commander );
if ( pl != null && pl.Finance != null )
if ( pl?.Finance != null )
pl.Finance.Finance = null;
if ( pl != null && pl.Sheriff != null )
if ( pl?.Sheriff != null )
pl.Sheriff.Sheriff = null;
}
}