diff options
author | Teravus Ovares | 2009-08-01 14:26:00 +0000 |
---|---|---|
committer | Teravus Ovares | 2009-08-01 14:26:00 +0000 |
commit | 4cbf0444df4b4c0eb3616e19279203e5f17a939b (patch) | |
tree | 7489d6f56865229d44ac9c689fb03a6353ffa934 /OpenSim/Region/CoreModules | |
parent | Add copyright header. Formatting cleanup. (diff) | |
download | opensim-SC_OLD-4cbf0444df4b4c0eb3616e19279203e5f17a939b.zip opensim-SC_OLD-4cbf0444df4b4c0eb3616e19279203e5f17a939b.tar.gz opensim-SC_OLD-4cbf0444df4b4c0eb3616e19279203e5f17a939b.tar.bz2 opensim-SC_OLD-4cbf0444df4b4c0eb3616e19279203e5f17a939b.tar.xz |
* Tweak the caps manager so that the NPCAvatar works again.
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 | ||