Prevent exception in terrain module if just the word terrain is entered at the console. Fixes Mantis #2915

This commit is contained in:
idb
2008-12-26 11:59:37 +00:00
parent a23e9a36a1
commit 8a58d998d9

View File

@@ -490,6 +490,11 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain
{
if (args[0] == "terrain")
{
if (args.Length == 1)
{
m_commander.ProcessConsoleCommand("help", new string[0]);
return;
}
string[] tmpArgs = new string[args.Length - 2];
int i;
for (i = 2; i < args.Length; i++)