aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
index 52e3718..fac2574 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
@@ -762,13 +762,14 @@ namespace OpenSim.Region.CoreModules.World.Land
762 { 762 {
763 try 763 try
764 { 764 {
765 //if (m_landList.ContainsKey(m_landIDList[x / 4, y / 4])) 765 return m_landList[m_landIDList[x / 4, y / 4]];
766 return m_landList[m_landIDList[x / 4, y / 4]];
767 //else
768 // return null;
769 } 766 }
770 catch (IndexOutOfRangeException) 767 catch (IndexOutOfRangeException)
771 { 768 {
769 m_log.WarnFormat(
770 "[LAND MANAGEMENT MODULE]: Tried to retrieve land object from out of bounds co-ordinate ({0},{1}) in {2}",
771 x, y, m_scene.RegionInfo.RegionName);
772
772 return null; 773 return null;
773 } 774 }
774 } 775 }