1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 10:42:55 +08:00

Revert non-track usage

This commit is contained in:
Dean Herbert 2020-08-22 19:47:05 +09:00
parent db52260427
commit 122265ff0e

View File

@ -86,7 +86,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
track = b.NewValue.Track;
// todo: i don't think this is safe, the track may not be loaded yet.
if (b.NewValue.Track.Length > 0)
if (track.Length > 0)
{
MaxZoom = getZoomLevelForVisibleMilliseconds(500);
MinZoom = getZoomLevelForVisibleMilliseconds(10000);