Binary Guids are 16 chars long. Fix parser.

soprefactor
Melanie 2010-05-18 23:22:30 +01:00
parent 4fee3f9548
commit caf61ab7d8
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ namespace OpenSim.Data
{ {
if (((byte[])id).Length == 0) if (((byte[])id).Length == 0)
return UUID.Zero; return UUID.Zero;
else if (((byte[])id).Length == 36) else if (((byte[])id).Length == 16)
return new UUID((byte[])id, 0); return new UUID((byte[])id, 0);
} }
else if (id.GetType() == typeof(string)) else if (id.GetType() == typeof(string))