Fixed crash with admin command

This commit is contained in:
juanjp600
2016-11-20 22:04:21 -03:00
parent ba7fcad8f2
commit 145abe03f1
+2
View File
@@ -376,6 +376,8 @@ namespace Barotrauma
HumanAIController.DisableCrewAI = false; HumanAIController.DisableCrewAI = false;
break; break;
case "admin": case "admin":
if (commands.Length < 2) break;
if (GameMain.Server != null) if (GameMain.Server != null)
{ {
GameMain.Server.AdminAuthPass = commands[1]; GameMain.Server.AdminAuthPass = commands[1];