OSDN Git Service

Don't crash on SignpostMarv's polar clock
authorLatif Khalifa <latifer@streamgrid.net>
Mon, 18 Apr 2011 01:20:00 +0000 (01:20 +0000)
committerLatif Khalifa <latifer@streamgrid.net>
Mon, 18 Apr 2011 01:20:00 +0000 (01:20 +0000)
git-svn-id: https://radegast.googlecode.com/svn/trunk@852 f7a694da-4d33-11de-9ad6-1127a62b9fcd

Radegast/GUI/Dialogs/PrimWorkshop.cs

index b5734f4..35b6a80 100644 (file)
@@ -947,6 +947,7 @@ namespace Radegast
 
 
                 if (existingMesh != null &&
+                    j < existingMesh.Faces.Count &&
                     existingMesh.Faces[j].TextureFace.TextureID == teFace.TextureID &&
                     ((FaceData)existingMesh.Faces[j].UserData).TexturePointer != 0
                     )