fix array size

0.1-prestable
morphw 2007-05-04 02:12:47 +00:00
parent 8b2896291a
commit d054ce7602
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ namespace OpenSim.Framework.Types
public byte[] ToBytes() public byte[] ToBytes()
{ {
int i = 0; int i = 0;
byte[] bytes = new byte[121 + Texture.Length]; byte[] bytes = new byte[126 + Texture.Length];
Array.Copy(OwnerID.GetBytes(), 0, bytes, i, 16); i += 16; Array.Copy(OwnerID.GetBytes(), 0, bytes, i, 16); i += 16;
bytes[i++] = this.PCode; bytes[i++] = this.PCode;
bytes[i++] = (byte)(this.PathBegin % 256); bytes[i++] = (byte)(this.PathBegin % 256);