mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
Potential Fix #1 for 0001392: Shift+Drag now causes an unhandled 'Object reference not set to an instance of object' exception
This commit is contained in:
@@ -583,11 +583,17 @@ namespace OpenSim.Region.Environment.Modules.World.Land
|
||||
public void UpdateLandPrimCounts()
|
||||
{
|
||||
ResetAllLandPrimCounts();
|
||||
foreach (EntityBase obj in m_scene.Entities.Values)
|
||||
lock (m_scene.Entities)
|
||||
{
|
||||
if (obj is SceneObjectGroup)
|
||||
foreach (EntityBase obj in m_scene.Entities.Values)
|
||||
{
|
||||
m_scene.EventManager.TriggerParcelPrimCountAdd((SceneObjectGroup)obj);
|
||||
if (obj != null)
|
||||
{
|
||||
if (obj is SceneObjectGroup)
|
||||
{
|
||||
m_scene.EventManager.TriggerParcelPrimCountAdd((SceneObjectGroup)obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
FinalizeLandPrimCountUpdate();
|
||||
|
||||
Reference in New Issue
Block a user