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

Use Track to ensure its loaded before transferring

This commit is contained in:
Salman Ahmed 2022-05-21 16:51:04 +03:00
parent a42f5ea34e
commit a17eed64f9

View File

@ -133,10 +133,10 @@ namespace osu.Game.Beatmaps
/// <returns>Whether the track has been transferred to the <paramref name="target"/>.</returns>
public virtual bool TryTransferTrack([NotNull] WorkingBeatmap target)
{
if (BeatmapInfo?.AudioEquals(target.BeatmapInfo) != true || track.IsDummyDevice)
if (BeatmapInfo?.AudioEquals(target.BeatmapInfo) != true || Track.IsDummyDevice)
return false;
target.track = track;
target.track = Track;
return true;
}