Fixes null propogation
This commit is contained in:
parent
22ab83ea9e
commit
3c9842ee5a
218 changed files with 799 additions and 1458 deletions
|
|
@ -65,8 +65,10 @@ namespace Server.Items
|
|||
{
|
||||
if ( m_Boat != null && m_Boat.Contains( from ) )
|
||||
m_Boat.BeginRename( from );
|
||||
else if ( m_Boat != null )
|
||||
m_Boat.BeginDryDock( from );
|
||||
else
|
||||
{
|
||||
m_Boat?.BeginDryDock( @from );
|
||||
}
|
||||
}
|
||||
|
||||
public override bool OnDragDrop( Mobile from, Item dropped )
|
||||
|
|
@ -81,8 +83,7 @@ namespace Server.Items
|
|||
|
||||
public override void OnAfterDelete()
|
||||
{
|
||||
if ( m_Boat != null )
|
||||
m_Boat.Delete();
|
||||
m_Boat?.Delete();
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue