mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Prevent a nullref when nonphysical motion objects cross sim boundaries
This commit is contained in:
@@ -582,7 +582,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
foreach (ScenePresence av in m_linkedAvatars)
|
||||
{
|
||||
SceneObjectPart p = m_scene.GetSceneObjectPart(av.ParentID);
|
||||
if (m_parts.TryGetValue(p.UUID, out p))
|
||||
if (p != null && m_parts.TryGetValue(p.UUID, out p))
|
||||
{
|
||||
Vector3 offset = p.GetWorldPosition() - av.ParentPosition;
|
||||
av.AbsolutePosition += offset;
|
||||
|
||||
Reference in New Issue
Block a user