diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs index d33201f..68aee86 100644 --- a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs | |||
@@ -664,16 +664,13 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
664 | public void UpdateLandPrimCounts() | 664 | public void UpdateLandPrimCounts() |
665 | { | 665 | { |
666 | ResetAllLandPrimCounts(); | 666 | ResetAllLandPrimCounts(); |
667 | lock (m_scene.Entities) | 667 | foreach (EntityBase obj in m_scene.Entities) |
668 | { | 668 | { |
669 | foreach (EntityBase obj in m_scene.Entities) | 669 | if (obj != null) |
670 | { | 670 | { |
671 | if (obj != null) | 671 | if ((obj is SceneObjectGroup) && !obj.IsDeleted && !((SceneObjectGroup) obj).IsAttachment) |
672 | { | 672 | { |
673 | if ((obj is SceneObjectGroup) && !((SceneObjectGroup)obj).IsDeleted && !((SceneObjectGroup)obj).IsAttachment) | 673 | m_scene.EventManager.TriggerParcelPrimCountAdd((SceneObjectGroup) obj); |
674 | { | ||
675 | m_scene.EventManager.TriggerParcelPrimCountAdd((SceneObjectGroup)obj); | ||
676 | } | ||
677 | } | 674 | } |
678 | } | 675 | } |
679 | } | 676 | } |