Fixes more casting
This commit is contained in:
parent
61937d9c97
commit
e77d695684
91 changed files with 512 additions and 908 deletions
|
|
@ -43,9 +43,7 @@ namespace Server.Guilds
|
|||
|
||||
public override void OnResponse( NetState sender, RelayInfo info )
|
||||
{
|
||||
PlayerMobile pm = sender.Mobile as PlayerMobile;
|
||||
|
||||
if ( pm == null || pm.Guild != null )
|
||||
if ( !(sender.Mobile is PlayerMobile pm) || pm.Guild != null )
|
||||
return; //Sanity
|
||||
|
||||
switch( info.ButtonID )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue