From 8c703022c14c55df6e862c6462ec8c7c39917296 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Wed, 31 Aug 2011 16:50:18 +0100 Subject: In WorldCommModule, replace the useless Attachments == null check with Attachments.Count == 0 instead --- OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs index f25699b..b20a875 100644 --- a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs @@ -316,8 +316,7 @@ namespace OpenSim.Region.CoreModules.Scripting.WorldComm List attachments = sp.GetAttachments(); - // Nothing left to do - if (attachments == null) + if (attachments.Count == 0) return true; // Get uuid of attachments -- cgit v1.1