diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index a46be13..893e35c 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | |||
@@ -709,7 +709,7 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
709 | int x; | 709 | int x; |
710 | int y; | 710 | int y; |
711 | 711 | ||
712 | if (x_float > Constants.RegionSize || x_float <= 0 || y_float > Constants.RegionSize || y_float <= 0) | 712 | if (x_float >= Constants.RegionSize || x_float < 0 || y_float >= Constants.RegionSize || y_float < 0) |
713 | return null; | 713 | return null; |
714 | 714 | ||
715 | try | 715 | try |
@@ -751,10 +751,10 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
751 | { | 751 | { |
752 | try | 752 | try |
753 | { | 753 | { |
754 | if (m_landList.ContainsKey(m_landIDList[x / 4, y / 4])) | 754 | //if (m_landList.ContainsKey(m_landIDList[x / 4, y / 4])) |
755 | return m_landList[m_landIDList[x / 4, y / 4]]; | 755 | return m_landList[m_landIDList[x / 4, y / 4]]; |
756 | else | 756 | //else |
757 | return null; | 757 | // return null; |
758 | } | 758 | } |
759 | catch (IndexOutOfRangeException) | 759 | catch (IndexOutOfRangeException) |
760 | { | 760 | { |