Fixes null propogation
This commit is contained in:
parent
22ab83ea9e
commit
3c9842ee5a
218 changed files with 799 additions and 1458 deletions
|
|
@ -125,8 +125,7 @@ namespace Server.Items
|
|||
if ( IsOpen || Deleted )
|
||||
return;
|
||||
|
||||
if ( m_CloseTimer != null )
|
||||
m_CloseTimer.Stop();
|
||||
m_CloseTimer?.Stop();
|
||||
|
||||
m_CloseTimer = new CloseTimer( this );
|
||||
m_CloseTimer.Start();
|
||||
|
|
@ -139,8 +138,7 @@ namespace Server.Items
|
|||
case 0x3E85: ItemID = 0x3E84; break;
|
||||
}
|
||||
|
||||
if ( m_Boat != null )
|
||||
m_Boat.Refresh();
|
||||
m_Boat?.Refresh();
|
||||
}
|
||||
|
||||
public override bool OnMoveOver( Mobile from )
|
||||
|
|
@ -230,8 +228,7 @@ namespace Server.Items
|
|||
if ( !IsOpen || !CanClose() || Deleted )
|
||||
return;
|
||||
|
||||
if ( m_CloseTimer != null )
|
||||
m_CloseTimer.Stop();
|
||||
m_CloseTimer?.Stop();
|
||||
|
||||
m_CloseTimer = null;
|
||||
|
||||
|
|
@ -243,8 +240,7 @@ namespace Server.Items
|
|||
case 0x3E84: ItemID = 0x3E85; break;
|
||||
}
|
||||
|
||||
if ( m_Boat != null )
|
||||
m_Boat.Refresh();
|
||||
m_Boat?.Refresh();
|
||||
}
|
||||
|
||||
public override void OnDoubleClickDead( Mobile from )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue