Fixed crash with admin command

This commit is contained in:
juanjp600
2016-11-20 22:04:21 -03:00
parent ba7fcad8f2
commit 145abe03f1

View File

@@ -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];