1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +08:00

Fix incorrect logging of preview tracks without track owner

This commit is contained in:
Dean Herbert 2021-11-26 21:37:43 +09:00
parent 35a347ce60
commit 7f9cc4d5ff

View File

@ -105,6 +105,8 @@ namespace osu.Game.Audio
protected override void LoadComplete()
{
base.LoadComplete();
if (Owner == null)
Logger.Log($"A {nameof(PreviewTrack)} was created without a containing {nameof(IPreviewTrackOwner)}. An owner should be added for correct behaviour.");
}