Repair database routines so they properly return null when asked for

the heighmap of a region that does not exist.
This commit is contained in:
Robert Adams
2014-01-28 15:29:06 -08:00
parent 8eec717f5f
commit e5d59dc696
5 changed files with 21 additions and 4 deletions

View File

@@ -148,6 +148,7 @@ namespace OpenSim.Data.Null
}
// Legacy. Just don't do this.
// Returns 'null' if region not found
public double[,] LoadTerrain(UUID regionID)
{
if (m_terrains.ContainsKey(regionID))