mirror of
https://github.com/ppy/osu
synced 2025-01-02 20:32:10 +00: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>
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user