aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Tools/pCampBot/Bot.cs15
1 files changed, 9 insertions, 6 deletions
diff --git a/OpenSim/Tools/pCampBot/Bot.cs b/OpenSim/Tools/pCampBot/Bot.cs
index 1b30766..669c99b 100644
--- a/OpenSim/Tools/pCampBot/Bot.cs
+++ b/OpenSim/Tools/pCampBot/Bot.cs
@@ -447,17 +447,20 @@ namespace pCampBot
447 447
448 for (int i = 0; i < prim.Textures.FaceTextures.Length; i++) 448 for (int i = 0; i < prim.Textures.FaceTextures.Length; i++)
449 { 449 {
450 UUID textureID = prim.Textures.FaceTextures[i].TextureID; 450 Primitive.TextureEntryFace face = prim.Textures.FaceTextures[i];
451 451
452 if (textureID != UUID.Zero) 452 if (face != null)
453 GetTexture(textureID); 453 {
454 UUID textureID = prim.Textures.FaceTextures[i].TextureID;
455
456 if (textureID != UUID.Zero)
457 GetTexture(textureID);
458 }
454 } 459 }
455 } 460 }
456 461
457 if (prim.Sculpt.SculptTexture != UUID.Zero) 462 if (prim.Sculpt != null && prim.Sculpt.SculptTexture != UUID.Zero)
458 {
459 GetTexture(prim.Sculpt.SculptTexture); 463 GetTexture(prim.Sculpt.SculptTexture);
460 }
461 } 464 }
462 } 465 }
463 466