diff options
author | Justin Clark-Casey (justincc) | 2011-08-31 16:50:18 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-08-31 16:50:18 +0100 |
commit | 8c703022c14c55df6e862c6462ec8c7c39917296 (patch) | |
tree | 819e033a4e161fcb22987184c2de714f3eab0d62 /OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs | |
parent | minor: remove mono compiler warning (diff) | |
download | opensim-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 '')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs | 3 |
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 |