aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/PacketPool.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/PacketPool.cs')
-rw-r--r--OpenSim/Framework/PacketPool.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/OpenSim/Framework/PacketPool.cs b/OpenSim/Framework/PacketPool.cs
index acd1425..27e74ca 100644
--- a/OpenSim/Framework/PacketPool.cs
+++ b/OpenSim/Framework/PacketPool.cs
@@ -28,8 +28,8 @@
28using System; 28using System;
29using System.Collections; 29using System.Collections;
30using System.Net; 30using System.Net;
31using libsecondlife; 31using OpenMetaverse;
32using libsecondlife.Packets; 32using OpenMetaverse.Packets;
33 33
34namespace OpenSim.Framework 34namespace OpenSim.Framework
35{ 35{
@@ -76,11 +76,13 @@ namespace OpenSim.Framework
76 ushort id; 76 ushort id;
77 PacketFrequency freq; 77 PacketFrequency freq;
78 78
79 Buffer.BlockCopy(bytes, 0, decoded_header, 0, 10);
80
81 if ((bytes[0] & Helpers.MSG_ZEROCODED) != 0) 79 if ((bytes[0] & Helpers.MSG_ZEROCODED) != 0)
82 { 80 {
83 Helpers.ZeroDecodeCommand(bytes, decoded_header); 81 Helpers.ZeroDecode(bytes, 16, decoded_header);
82 }
83 else
84 {
85 Buffer.BlockCopy(bytes, 0, decoded_header, 0, 10);
84 } 86 }
85 87
86 if (decoded_header[6] == 0xFF) 88 if (decoded_header[6] == 0xFF)