mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
* Replace manually zeroing with Array.Clear(). Thanks cmickeyb
This commit is contained in:
@@ -115,9 +115,7 @@ namespace OpenSim.Framework
|
||||
{
|
||||
PacketType type = GetType(bytes);
|
||||
|
||||
int z;
|
||||
for (z = 0 ; z < zeroBuffer.Length ; z++)
|
||||
zeroBuffer[z] = 0;
|
||||
Array.Clear(zeroBuffer, 0, zeroBuffer.Length);
|
||||
|
||||
int i = 0;
|
||||
Packet packet = GetPacket(type);
|
||||
|
||||
Reference in New Issue
Block a user