mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Use Track
to ensure its loaded before transferring
This commit is contained in:
parent
a42f5ea34e
commit
a17eed64f9
@ -133,10 +133,10 @@ namespace osu.Game.Beatmaps
|
|||||||
/// <returns>Whether the track has been transferred to the <paramref name="target"/>.</returns>
|
/// <returns>Whether the track has been transferred to the <paramref name="target"/>.</returns>
|
||||||
public virtual bool TryTransferTrack([NotNull] WorkingBeatmap target)
|
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;
|
return false;
|
||||||
|
|
||||||
target.track = track;
|
target.track = Track;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user