Fixes null propogation
This commit is contained in:
parent
22ab83ea9e
commit
3c9842ee5a
218 changed files with 799 additions and 1458 deletions
|
|
@ -142,9 +142,7 @@ namespace Server.Spells.Mysticism
|
|||
|
||||
protected override void OnTarget( Mobile from, object o )
|
||||
{
|
||||
var p = o as IPoint3D;
|
||||
|
||||
if ( p != null )
|
||||
if ( o is IPoint3D p )
|
||||
m_Owner.Target( p );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue