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

0.6.2-post-fixes
idb 2008-12-26 11:59:37 +00:00
parent a23e9a36a1
commit 8a58d998d9
1 changed files with 5 additions and 0 deletions

View File

@ -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++)