1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 05:42:56 +08:00

Fix substring of GetHashCode potentially failing

This commit is contained in:
Dean Herbert 2025-01-15 16:18:34 +09:00
parent e871f02350
commit 0b764e6372
No known key found for this signature in database

View File

@ -206,7 +206,7 @@ namespace osu.Game.Screens.SelectV2
updateSelection();
void log(string text) => Logger.Log($"Carousel[op {cts.GetHashCode().ToString().Substring(0, 5)}] {stopwatch.ElapsedMilliseconds} ms: {text}");
void log(string text) => Logger.Log($"Carousel[op {cts.GetHashCode().ToString()}] {stopwatch.ElapsedMilliseconds} ms: {text}");
}
private async Task updateYPositions(IEnumerable<CarouselItem> carouselItems, CancellationToken cancellationToken) => await Task.Run(() =>