Fixed DebugConsole selecting non-command lines if up/down is pressed when there are no commands in the console. Closes #927
This commit is contained in:
@@ -1895,7 +1895,7 @@ namespace Barotrauma
|
||||
if (++i >= Messages.Count) break;
|
||||
} while (!Messages[selectedIndex].IsCommand);
|
||||
|
||||
return Messages[selectedIndex].Text;
|
||||
return !Messages[selectedIndex].IsCommand ? "" : Messages[selectedIndex].Text;
|
||||
}
|
||||
|
||||
public static void ExecuteCommand(string command)
|
||||
|
||||
Reference in New Issue
Block a user