1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 00:47:24 +08:00

Fix a few test scenes

This commit is contained in:
smoogipoo 2020-08-06 19:05:15 +09:00
parent adf4f56dce
commit 4cfca71d08

View File

@ -1,6 +1,7 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Diagnostics;
using osu.Framework.Extensions.ObjectExtensions;
namespace osu.Game.Tests.Visual
@ -15,7 +16,11 @@ namespace osu.Game.Tests.Visual
base.Update();
// note that this will override any mod rate application
MusicController.CurrentTrack.AsNonNull().Tempo.Value = Clock.Rate;
if (MusicController.TrackLoaded)
{
Debug.Assert(MusicController.CurrentTrack != null);
MusicController.CurrentTrack.Tempo.Value = Clock.Rate;
}
}
}
}