aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Framework/PrimitiveBaseShape.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs
index aa88717..1f5428b 100644
--- a/OpenSim/Framework/PrimitiveBaseShape.cs
+++ b/OpenSim/Framework/PrimitiveBaseShape.cs
@@ -450,7 +450,11 @@ namespace OpenSim.Framework
450 bool lGotSculpt = false; 450 bool lGotSculpt = false;
451 451
452 int i = 0; 452 int i = 0;
453 byte extraParamCount = data[i++]; 453 byte extraParamCount = 0;
454 if (data.Length > 0)
455 {
456 extraParamCount = data[i++];
457 }
454 458
455 459
456 for (int k = 0; k < extraParamCount; k++) 460 for (int k = 0; k < extraParamCount; k++)
@@ -625,4 +629,4 @@ namespace OpenSim.Framework
625 return data; 629 return data;
626 } 630 }
627 } 631 }
628} \ No newline at end of file 632}