diff options
Prevent exception in terrain module if just the word terrain is entered at the console. Fixes Mantis #2915
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs b/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs index e1dcd4c..f0af552 100644 --- a/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs | |||
@@ -490,6 +490,11 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain | |||
490 | { | 490 | { |
491 | if (args[0] == "terrain") | 491 | if (args[0] == "terrain") |
492 | { | 492 | { |
493 | if (args.Length == 1) | ||
494 | { | ||
495 | m_commander.ProcessConsoleCommand("help", new string[0]); | ||
496 | return; | ||
497 | } | ||
493 | string[] tmpArgs = new string[args.Length - 2]; | 498 | string[] tmpArgs = new string[args.Length - 2]; |
494 | int i; | 499 | int i; |
495 | for (i = 2; i < args.Length; i++) | 500 | for (i = 2; i < args.Length; i++) |