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

@ -50,8 +50,7 @@ namespace Server.Items
{
Timer t = (Timer)m_Table[m];
if ( t != null )
t.Stop();
t?.Stop();
t = new InternalTimer( m, duration );
m_Table[m] = t;
@ -68,8 +67,7 @@ namespace Server.Items
Timer t = (Timer)m_Table[m];
if ( t != null )
t.Stop();
t?.Stop();
m_Table.Remove( m );

View file

@ -96,8 +96,7 @@ namespace Server.Items
{
Timer t = (Timer)m_Table[m];
if ( t != null )
t.Stop();
t?.Stop();
t = new InternalTimer( m, duration );
m_Table[m] = t;
@ -109,8 +108,7 @@ namespace Server.Items
{
Timer t = (Timer)m_Table[m];
if ( t != null )
t.Stop();
t?.Stop();
m_Table.Remove( m );
}