Fixes more casting
This commit is contained in:
parent
61937d9c97
commit
e77d695684
91 changed files with 512 additions and 908 deletions
|
|
@ -22,15 +22,13 @@ namespace Server.Gumps
|
|||
if ( GuildGump.BadMember( m_Mobile, m_Guild ) )
|
||||
return;
|
||||
|
||||
if ( targeted is Mobile )
|
||||
if ( targeted is Mobile m )
|
||||
{
|
||||
Mobile m = (Mobile)targeted;
|
||||
|
||||
PlayerState guildState = PlayerState.Find( m_Guild.Leader );
|
||||
PlayerState targetState = PlayerState.Find( m );
|
||||
|
||||
Faction guildFaction = ( guildState == null ? null : guildState.Faction );
|
||||
Faction targetFaction = ( targetState == null ? null : targetState.Faction );
|
||||
Faction guildFaction = guildState?.Faction;
|
||||
Faction targetFaction = targetState?.Faction;
|
||||
|
||||
if ( !m.Player )
|
||||
{
|
||||
|
|
@ -92,4 +90,4 @@ namespace Server.Gumps
|
|||
m_Mobile.SendGump( new GuildGump( m_Mobile, m_Guild ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue