aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/PacketPool.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-12-17 17:18:52 +0000
committerJustin Clarke Casey2008-12-17 17:18:52 +0000
commit72ff5322f5e0aa687a624ca726a0f4b613e51923 (patch)
tree1498d1af96da1e2dee3ab37db872bad03f4c66b6 /OpenSim/Framework/PacketPool.cs
parentMantis #2850 (diff)
downloadopensim-SC_OLD-72ff5322f5e0aa687a624ca726a0f4b613e51923.zip
opensim-SC_OLD-72ff5322f5e0aa687a624ca726a0f4b613e51923.tar.gz
opensim-SC_OLD-72ff5322f5e0aa687a624ca726a0f4b613e51923.tar.bz2
opensim-SC_OLD-72ff5322f5e0aa687a624ca726a0f4b613e51923.tar.xz
* Replace manually zeroing with Array.Clear(). Thanks cmickeyb
Diffstat (limited to 'OpenSim/Framework/PacketPool.cs')
-rw-r--r--OpenSim/Framework/PacketPool.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/OpenSim/Framework/PacketPool.cs b/OpenSim/Framework/PacketPool.cs
index e24da42..9994fac 100644
--- a/OpenSim/Framework/PacketPool.cs
+++ b/OpenSim/Framework/PacketPool.cs
@@ -115,9 +115,7 @@ namespace OpenSim.Framework
115 { 115 {
116 PacketType type = GetType(bytes); 116 PacketType type = GetType(bytes);
117 117
118 int z; 118 Array.Clear(zeroBuffer, 0, zeroBuffer.Length);
119 for (z = 0 ; z < zeroBuffer.Length ; z++)
120 zeroBuffer[z] = 0;
121 119
122 int i = 0; 120 int i = 0;
123 Packet packet = GetPacket(type); 121 Packet packet = GetPacket(type);