fixes issue 571, not handling short on CapsToPacket.cs

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1481 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
phaik
2007-11-09 03:31:17 +00:00
parent 6af90c73b4
commit 71accbabea

View File

@@ -176,6 +176,10 @@ namespace libsecondlife.Packets
// Just need a bit of manual typecasting love here
field.SetValue(block, (byte)(int)blockData[field.Name]);
}
else if (fieldType == typeof(short))
{
field.SetValue(block, (short)(int)blockData[field.Name]);
}
else
{
field.SetValue(block, blockData[field.Name]);