Fixes casting, default parameters and null propogation in more files.

This commit is contained in:
Kamron Batman 2018-09-09 22:05:44 -07:00
parent 067dca8393
commit 403e2a8b9d
21 changed files with 328 additions and 523 deletions

View file

@ -59,9 +59,7 @@ namespace Server.Misc
private static string GetAccountDuration( Mobile m )
{
Account a = m.Account as Account;
if ( a == null )
if ( !(m.Account is Account a) )
return "";
TimeSpan ts = DateTime.UtcNow - a.Created;