mirror of
https://github.com/osukey/osukey.git
synced 2025-07-08 11:50:04 +09:00
Use Track
to ensure its loaded before transferring
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user