From 145abe03f182379ad2f85f90f2d19635c3cc2898 Mon Sep 17 00:00:00 2001 From: juanjp600 Date: Sun, 20 Nov 2016 22:04:21 -0300 Subject: [PATCH] Fixed crash with admin command --- Subsurface/Source/DebugConsole.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Subsurface/Source/DebugConsole.cs b/Subsurface/Source/DebugConsole.cs index 2e3947bc7..a505c9da7 100644 --- a/Subsurface/Source/DebugConsole.cs +++ b/Subsurface/Source/DebugConsole.cs @@ -376,6 +376,8 @@ namespace Barotrauma HumanAIController.DisableCrewAI = false; break; case "admin": + if (commands.Length < 2) break; + if (GameMain.Server != null) { GameMain.Server.AdminAuthPass = commands[1];