diff options
author | Robert Adams | 2014-01-28 15:29:06 -0800 |
---|---|---|
committer | Robert Adams | 2014-01-28 15:29:06 -0800 |
commit | e5d59dc696e647624047465e0e718f2c65106b3c (patch) | |
tree | 770acd7476569391902665c332ad7679f821a3b7 /OpenSim/Data/Null/NullSimulationData.cs | |
parent | Merge branch 'master' into varregion (diff) | |
download | opensim-SC_OLD-e5d59dc696e647624047465e0e718f2c65106b3c.zip opensim-SC_OLD-e5d59dc696e647624047465e0e718f2c65106b3c.tar.gz opensim-SC_OLD-e5d59dc696e647624047465e0e718f2c65106b3c.tar.bz2 opensim-SC_OLD-e5d59dc696e647624047465e0e718f2c65106b3c.tar.xz |
Repair database routines so they properly return null when asked for
the heighmap of a region that does not exist.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/Null/NullSimulationData.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSim/Data/Null/NullSimulationData.cs b/OpenSim/Data/Null/NullSimulationData.cs index acde1a1..deeaced 100644 --- a/OpenSim/Data/Null/NullSimulationData.cs +++ b/OpenSim/Data/Null/NullSimulationData.cs | |||
@@ -148,6 +148,7 @@ namespace OpenSim.Data.Null | |||
148 | } | 148 | } |
149 | 149 | ||
150 | // Legacy. Just don't do this. | 150 | // Legacy. Just don't do this. |
151 | // Returns 'null' if region not found | ||
151 | public double[,] LoadTerrain(UUID regionID) | 152 | public double[,] LoadTerrain(UUID regionID) |
152 | { | 153 | { |
153 | if (m_terrains.ContainsKey(regionID)) | 154 | if (m_terrains.ContainsKey(regionID)) |