mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 20:47:24 +00:00
Merge remote-tracking branch 'origin/collections' into dev
# Conflicts: # ICD.Common.Utils/Collections/PriorityQueue.cs
This commit is contained in:
commit
79bbbe277f
1 changed files with 6 additions and 1 deletions
|
|
@ -148,7 +148,12 @@ namespace ICD.Common.Utils.Collections
|
||||||
if (!inserted)
|
if (!inserted)
|
||||||
{
|
{
|
||||||
int insertIndex = removeIndices[0];
|
int insertIndex = removeIndices[0];
|
||||||
kvp.Value.Insert(insertIndex, item);
|
|
||||||
|
if (insertIndex >= kvp.Value.Count)
|
||||||
|
kvp.Value.Add(item);
|
||||||
|
else
|
||||||
|
kvp.Value.Insert(insertIndex, item);
|
||||||
|
|
||||||
m_Count++;
|
m_Count++;
|
||||||
|
|
||||||
inserted = true;
|
inserted = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue