Fixes null propogation

This commit is contained in:
Kamron Batman 2018-09-14 13:49:23 -07:00
parent 22ab83ea9e
commit 3c9842ee5a
218 changed files with 799 additions and 1458 deletions

View file

@ -19,8 +19,7 @@ namespace Server.Items
public void BeginDecay( TimeSpan delay )
{
if ( m_DecayTimer != null )
m_DecayTimer.Stop();
m_DecayTimer?.Stop();
m_DecayTime = DateTime.UtcNow + delay;
@ -30,8 +29,7 @@ namespace Server.Items
public override void OnAfterDelete()
{
if ( m_DecayTimer != null )
m_DecayTimer.Stop();
m_DecayTimer?.Stop();
m_DecayTimer = null;
}