diff options
Diffstat (limited to 'OpenSim/Framework/PacketPool.cs')
-rw-r--r-- | OpenSim/Framework/PacketPool.cs | 12 |
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 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Net; | 30 | using System.Net; |
31 | using libsecondlife; | 31 | using OpenMetaverse; |
32 | using libsecondlife.Packets; | 32 | using OpenMetaverse.Packets; |
33 | 33 | ||
34 | namespace OpenSim.Framework | 34 | namespace 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) |