Put in temporary logging message to find out if scene objects are requesting land objects for co-ordinates outside the region

0.7.1-dev
Justin Clark-Casey (justincc) 2011-03-31 22:47:18 +01:00
parent 7bba31e8d9
commit efd0c003a3
1 changed files with 5 additions and 4 deletions

View File

@ -762,13 +762,14 @@ namespace OpenSim.Region.CoreModules.World.Land
{
try
{
//if (m_landList.ContainsKey(m_landIDList[x / 4, y / 4]))
return m_landList[m_landIDList[x / 4, y / 4]];
//else
// return null;
}
catch (IndexOutOfRangeException)
{
m_log.WarnFormat(
"[LAND MANAGEMENT MODULE]: Tried to retrieve land object from out of bounds co-ordinate ({0},{1}) in {2}",
x, y, m_scene.RegionInfo.RegionName);
return null;
}
}