mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
Prevent exception in terrain module if just the word terrain is entered at the console. Fixes Mantis #2915
This commit is contained in:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user