diff options
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index e385ae0..4deb36e 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | |||
@@ -581,7 +581,10 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
581 | } | 581 | } |
582 | lock (m_landIDList) | 582 | lock (m_landIDList) |
583 | { | 583 | { |
584 | return m_landList[m_landIDList[x / 4, y / 4]]; | 584 | if (m_landList.ContainsKey(m_landIDList[x / 4, y / 4])) |
585 | return m_landList[m_landIDList[x / 4, y / 4]]; | ||
586 | else | ||
587 | return null; | ||
585 | } | 588 | } |
586 | } | 589 | } |
587 | 590 | ||