aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-08-31 16:50:18 +0100
committerJustin Clark-Casey (justincc)2011-08-31 16:50:18 +0100
commit8c703022c14c55df6e862c6462ec8c7c39917296 (patch)
tree819e033a4e161fcb22987184c2de714f3eab0d62 /OpenSim
parentminor: remove mono compiler warning (diff)
downloadopensim-SC_OLD-8c703022c14c55df6e862c6462ec8c7c39917296.zip
opensim-SC_OLD-8c703022c14c55df6e862c6462ec8c7c39917296.tar.gz
opensim-SC_OLD-8c703022c14c55df6e862c6462ec8c7c39917296.tar.bz2
opensim-SC_OLD-8c703022c14c55df6e862c6462ec8c7c39917296.tar.xz
In WorldCommModule, replace the useless Attachments == null check with Attachments.Count == 0 instead
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs3
1 files changed, 1 insertions, 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
316 316
317 List<SceneObjectGroup> attachments = sp.GetAttachments(); 317 List<SceneObjectGroup> attachments = sp.GetAttachments();
318 318
319 // Nothing left to do 319 if (attachments.Count == 0)
320 if (attachments == null)
321 return true; 320 return true;
322 321
323 // Get uuid of attachments 322 // Get uuid of attachments