From 54839d28ad0bf2a2e613dd698e8927823ed64349 Mon Sep 17 00:00:00 2001 From: "Justin Clark-Casey (justincc)" Date: Wed, 31 Aug 2011 16:46:43 +0100 Subject: [PATCH] remove pointless m_attachments == null check since this field is never null --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index e3b7c72419..43a845cc7e 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -945,7 +945,7 @@ namespace OpenSim.Region.Framework.Scenes // haven't started yet. lock (m_attachments) { - if (wasChild && m_attachments != null && m_attachments.Count > 0) + if (wasChild && HasAttachments()) { m_log.DebugFormat("[SCENE PRESENCE]: Restarting scripts in attachments..."); // Resume scripts