diff options
author | Mic Bowman | 2014-01-28 15:47:24 -0800 |
---|---|---|
committer | Mic Bowman | 2014-01-28 15:47:24 -0800 |
commit | 1d533b0f018792c25669b011d1a98daa5d955997 (patch) | |
tree | 4df7bc87605196590d7f856910a4e29781e1154f /OpenSim/Data/SQLite/SQLiteSimulationData.cs | |
parent | Some major surgery on the sun module. Updates to the client were gated (diff) | |
parent | Repair database routines so they properly return null when asked for (diff) | |
download | opensim-SC_OLD-1d533b0f018792c25669b011d1a98daa5d955997.zip opensim-SC_OLD-1d533b0f018792c25669b011d1a98daa5d955997.tar.gz opensim-SC_OLD-1d533b0f018792c25669b011d1a98daa5d955997.tar.bz2 opensim-SC_OLD-1d533b0f018792c25669b011d1a98daa5d955997.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteSimulationData.cs')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteSimulationData.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteSimulationData.cs b/OpenSim/Data/SQLite/SQLiteSimulationData.cs index 5a34f09..9466e99 100644 --- a/OpenSim/Data/SQLite/SQLiteSimulationData.cs +++ b/OpenSim/Data/SQLite/SQLiteSimulationData.cs | |||
@@ -870,10 +870,14 @@ namespace OpenSim.Data.SQLite | |||
870 | /// <returns>Heightfield data</returns> | 870 | /// <returns>Heightfield data</returns> |
871 | public double[,] LoadTerrain(UUID regionID) | 871 | public double[,] LoadTerrain(UUID regionID) |
872 | { | 872 | { |
873 | double[,] ret = null; | ||
873 | TerrainData terrData = LoadTerrain(regionID, (int)Constants.RegionSize, (int)Constants.RegionSize, (int)Constants.RegionHeight); | 874 | TerrainData terrData = LoadTerrain(regionID, (int)Constants.RegionSize, (int)Constants.RegionSize, (int)Constants.RegionHeight); |
874 | return terrData.GetDoubles(); | 875 | if (terrData != null) |
876 | ret = terrData.GetDoubles(); | ||
877 | return ret; | ||
875 | } | 878 | } |
876 | 879 | ||
880 | // Returns 'null' if region not found | ||
877 | public TerrainData LoadTerrain(UUID regionID, int pSizeX, int pSizeY, int pSizeZ) | 881 | public TerrainData LoadTerrain(UUID regionID, int pSizeX, int pSizeY, int pSizeZ) |
878 | { | 882 | { |
879 | TerrainData terrData = null; | 883 | TerrainData terrData = null; |