Add one more check for key presence

This commit is contained in:
Melanie Thielker
2008-10-12 01:16:35 +00:00
parent 765fc6c289
commit 166690d539

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>();
}