Fix wrong mono streak length handling in corner case

This commit is contained in:
Bartłomiej Dach
2020-09-10 19:21:16 +02:00
parent 6e5c5ab901
commit a350802158
3 changed files with 36 additions and 1 deletions

View File

@ -40,8 +40,17 @@ namespace osu.Game.Rulesets.Difficulty.Utils
this.capacity = capacity;
array = new T[capacity];
Clear();
}
/// <summary>
/// Removes all elements from the <see cref="LimitedCapacityQueue{T}"/>.
/// </summary>
public void Clear()
{
start = 0;
end = -1;
Count = 0;
}
/// <summary>