Add one more check for key presence

0.6.0-stable
Melanie Thielker 2008-10-12 01:16:35 +00:00
parent 765fc6c289
commit 166690d539
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ namespace OpenSim.Framework
{
PacketType type = packet.Type;
if (pool[type] == null)
if (!pool.ContainsKey(type))
{
pool[type] = new Stack<Packet>();
}