Variant 1: edit changes history, empty text resets index

This commit is contained in:
Terochi
2022-11-21 09:32:44 +01:00
parent 33b2fe46d9
commit 8f942f130b
3 changed files with 24 additions and 60 deletions

View File

@ -103,6 +103,13 @@ namespace osu.Game.Utils
return array[(start + index) % capacity];
}
set
{
if (index < 0 || index >= Count)
throw new ArgumentOutOfRangeException(nameof(index));
array[(start + index) % capacity] = value;
}
}
/// <summary>