Remove pointless contains check in ScenePresence.RemoveAttachment()
parent
1f3ce48be1
commit
afd5469eec
|
@ -3509,12 +3509,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
public void RemoveAttachment(SceneObjectGroup gobj)
|
public void RemoveAttachment(SceneObjectGroup gobj)
|
||||||
{
|
{
|
||||||
lock (m_attachments)
|
lock (m_attachments)
|
||||||
{
|
m_attachments.Remove(gobj);
|
||||||
if (m_attachments.Contains(gobj))
|
|
||||||
{
|
|
||||||
m_attachments.Remove(gobj);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool ValidateAttachments()
|
public bool ValidateAttachments()
|
||||||
|
|
Loading…
Reference in New Issue