Fixed calling "debug xengine log" without the 'level' parameter: this should show the current log level; not crash

This commit is contained in:
Oren Hurvitz
2015-07-27 08:54:18 +03:00
parent c8135834db
commit 7457173fe4

View File

@@ -460,7 +460,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
/// <param name="args"></param>
private void HandleDebugLevelCommand(string module, string[] args)
{
if (args.Length <= 4)
if (args.Length >= 4)
{
int newDebug;
if (ConsoleUtil.TryParseConsoleNaturalInt(MainConsole.Instance, args[3], out newDebug))