Fixes more casting
This commit is contained in:
parent
61937d9c97
commit
e77d695684
91 changed files with 512 additions and 908 deletions
|
|
@ -152,8 +152,8 @@ namespace Server.Engines.Quests.Haven
|
|||
[CommandProperty( AccessLevel.GameMaster )]
|
||||
public MilitiaCanoneer Canoneer
|
||||
{
|
||||
get { return Addon is Cannon ? ((Cannon)Addon).Canoneer : null; }
|
||||
set { if ( Addon is Cannon ) ((Cannon)Addon).Canoneer = value; }
|
||||
get { return Addon is Cannon cannon ? cannon.Canoneer : null; }
|
||||
set { if ( Addon is Cannon cannon ) cannon.Canoneer = value; }
|
||||
}
|
||||
|
||||
public CannonComponent( int itemID ) : base( itemID )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue