diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs index f54fd67..af92fe7 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | |||
@@ -272,7 +272,15 @@ namespace OpenSim.Region.Terrain | |||
272 | /// <returns>If the operation was successful (if not, the error is placed into resultText)</returns> | 272 | /// <returns>If the operation was successful (if not, the error is placed into resultText)</returns> |
273 | public bool RunTerrainCmd(string[] args, ref string resultText, string simName) | 273 | public bool RunTerrainCmd(string[] args, ref string resultText, string simName) |
274 | { | 274 | { |
275 | string command = args[0]; | 275 | string command; |
276 | if (args.Length > 0) | ||
277 | { | ||
278 | command = args[0]; | ||
279 | } | ||
280 | else | ||
281 | { | ||
282 | command = "help"; | ||
283 | } | ||
276 | 284 | ||
277 | try | 285 | try |
278 | { | 286 | { |