From 58371b60abaadb27f47b8e0e884c3f3ce5e2269a Mon Sep 17 00:00:00 2001 From: Exp Date: Tue, 11 Aug 2020 17:38:14 +0200 Subject: [PATCH] Fix Exception as non admin (#1646) --- Content.Client/Chat/ChatManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Client/Chat/ChatManager.cs b/Content.Client/Chat/ChatManager.cs index 2264931496..1cf96367a6 100644 --- a/Content.Client/Chat/ChatManager.cs +++ b/Content.Client/Chat/ChatManager.cs @@ -302,7 +302,8 @@ namespace Content.Client.Chat case "ALL": chatBox.LocalButton.Pressed ^= true; chatBox.OOCButton.Pressed ^= true; - chatBox.AdminButton.Pressed ^= true; + if (chatBox.AdminButton != null) + chatBox.AdminButton.Pressed ^= true; _allState = !_allState; break; }