From 9be44dc479721388f4e016632635bcde3c60e346 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Tue, 18 Jul 2017 18:36:30 +0300 Subject: [PATCH] DebugConsole fix --- Barotrauma/BarotraumaShared/Source/DebugConsole.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Barotrauma/BarotraumaShared/Source/DebugConsole.cs b/Barotrauma/BarotraumaShared/Source/DebugConsole.cs index 9fa1e75c9..64286f481 100644 --- a/Barotrauma/BarotraumaShared/Source/DebugConsole.cs +++ b/Barotrauma/BarotraumaShared/Source/DebugConsole.cs @@ -748,9 +748,9 @@ namespace Barotrauma } #if !DEBUG && CLIENT - if (GameMain.Client != null && !IsCommandPermitted(args[0].ToLowerInvariant(), GameMain.Client)) + if (GameMain.Client != null && !IsCommandPermitted(splitCommand[0].ToLowerInvariant(), GameMain.Client)) { - ThrowError("You're not permitted to use the command \"" + args[0].ToLowerInvariant()+"\"!"); + ThrowError("You're not permitted to use the command \"" + splitCommand[0].ToLowerInvariant() + "\"!"); return; } #endif