From 4177f5c4856cffae00d9a7a766c24c9c968bd711 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Fri, 17 Aug 2007 22:57:46 +0000 Subject: * Applied dalien's terrain help patch (thanks!) --- OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region') 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 /// If the operation was successful (if not, the error is placed into resultText) public bool RunTerrainCmd(string[] args, ref string resultText, string simName) { - string command = args[0]; + string command; + if (args.Length > 0) + { + command = args[0]; + } + else + { + command = "help"; + } try { -- cgit v1.1