aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoridb2008-12-26 11:59:37 +0000
committeridb2008-12-26 11:59:37 +0000
commit8a58d998d98011293acdef61a995d2373a628e58 (patch)
tree384dacfd0d1bba66b9d7df302814efe6665ba27e
parentSubstitutes the value of an environment variable if the value of a region con... (diff)
downloadopensim-SC-8a58d998d98011293acdef61a995d2373a628e58.zip
opensim-SC-8a58d998d98011293acdef61a995d2373a628e58.tar.gz
opensim-SC-8a58d998d98011293acdef61a995d2373a628e58.tar.bz2
opensim-SC-8a58d998d98011293acdef61a995d2373a628e58.tar.xz
Prevent exception in terrain module if just the word terrain is entered at the console. Fixes Mantis #2915
-rw-r--r--OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs5
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++)