Fixes null propogation
This commit is contained in:
parent
22ab83ea9e
commit
3c9842ee5a
218 changed files with 799 additions and 1458 deletions
|
|
@ -190,8 +190,7 @@ namespace Server.Engines.Chat
|
|||
{
|
||||
ChatSystem.SendCommandTo( user.Mobile, ChatCommand.CloseChatWindow );
|
||||
|
||||
if ( user.m_Channel != null )
|
||||
user.m_Channel.RemoveUser( user );
|
||||
user.m_Channel?.RemoveUser( user );
|
||||
|
||||
m_Users.Remove( user );
|
||||
m_Table.Remove( user.m_Mobile );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue