This commit is contained in:
Chris Forbes
2009-12-01 18:35:36 +13:00
parent 821e7a5747
commit b3db5d2ec5

View File

@@ -153,9 +153,10 @@ namespace OpenRa.Game
lock (orderBuffers) lock (orderBuffers)
{ {
/* accumulate this chunk */ /* accumulate this chunk */
if (orderBuffers[frame] == null) if (!orderBuffers.ContainsKey(frame))
orderBuffers[frame] = new List<byte[]>(); orderBuffers[frame] = new List<byte[]> { buf };
orderBuffers[frame].Add(buf); else
orderBuffers[frame].Add(buf);
} }
} }
} ) { IsBackground = true }.Start(); } ) { IsBackground = true }.Start();