Fixes null propogation
This commit is contained in:
parent
22ab83ea9e
commit
3c9842ee5a
218 changed files with 799 additions and 1458 deletions
|
|
@ -38,8 +38,7 @@ namespace Server.Items
|
|||
|
||||
public virtual void Expire( Mobile parent )
|
||||
{
|
||||
if ( parent != null )
|
||||
parent.SendLocalizedMessage( 1072515, (Name == null ? $"#{LabelNumber}" : Name) ); // The ~1_name~ expired...
|
||||
parent?.SendLocalizedMessage( 1072515, (Name == null ? $"#{LabelNumber}" : Name) ); // The ~1_name~ expired...
|
||||
|
||||
Effects.PlaySound( GetWorldLocation(), Map, 0x201 );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue