OSDN Git Service

Fixed detection of attachments.
authorLatif Khalifa <latifer@streamgrid.net>
Wed, 11 Nov 2009 12:38:27 +0000 (12:38 +0000)
committerLatif Khalifa <latifer@streamgrid.net>
Wed, 11 Nov 2009 12:38:27 +0000 (12:38 +0000)
git-svn-id: https://radegast.googlecode.com/svn/trunk@443 f7a694da-4d33-11de-9ad6-1127a62b9fcd

Radegast/GUI/Consoles/Inventory/InventoryConsole.cs

index af7e8c5..515bbf1 100644 (file)
@@ -188,7 +188,9 @@ namespace Radegast
         {\r
             Primitive prim = e.Prim;\r
 \r
-            if (!e.IsAttachment || prim.ParentID != client.Self.LocalID) return;\r
+            if (client.Self.LocalID == 0 ||\r
+                prim.ParentID != client.Self.LocalID ||\r
+                prim.NameValues == null) return;\r
 \r
             for (int i = 0; i < prim.NameValues.Length; i++)\r
             {\r