In WorldCommModule, replace the useless Attachments == null check with Attachments.Count == 0 instead

remove-scene-viewer
Justin Clark-Casey (justincc) 2011-08-31 16:50:18 +01:00
parent d3c03658aa
commit 8c703022c1
1 changed files with 1 additions and 2 deletions

View File

@ -316,8 +316,7 @@ namespace OpenSim.Region.CoreModules.Scripting.WorldComm
List<SceneObjectGroup> attachments = sp.GetAttachments(); List<SceneObjectGroup> attachments = sp.GetAttachments();
// Nothing left to do if (attachments.Count == 0)
if (attachments == null)
return true; return true;
// Get uuid of attachments // Get uuid of attachments