Prevent exception in terrain module if just the word terrain is entered at the console. Fixes Mantis #2915
parent
a23e9a36a1
commit
8a58d998d9
|
@ -490,6 +490,11 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain
|
||||||
{
|
{
|
||||||
if (args[0] == "terrain")
|
if (args[0] == "terrain")
|
||||||
{
|
{
|
||||||
|
if (args.Length == 1)
|
||||||
|
{
|
||||||
|
m_commander.ProcessConsoleCommand("help", new string[0]);
|
||||||
|
return;
|
||||||
|
}
|
||||||
string[] tmpArgs = new string[args.Length - 2];
|
string[] tmpArgs = new string[args.Length - 2];
|
||||||
int i;
|
int i;
|
||||||
for (i = 2; i < args.Length; i++)
|
for (i = 2; i < args.Length; i++)
|
||||||
|
|
Loading…
Reference in New Issue