mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 04:13:00 +08:00
Move list initialisation to pattern generation code
This commit is contained in:
parent
aeafa5645a
commit
e7c85d38a8
@ -76,10 +76,10 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns.Legacy
|
|||||||
Duration = endTime - HitObject.StartTime
|
Duration = endTime - HitObject.StartTime
|
||||||
};
|
};
|
||||||
|
|
||||||
hold.Head.Samples.Add(new SampleInfo
|
if (hold.Head.Samples == null)
|
||||||
{
|
hold.Head.Samples = new SampleInfoList();
|
||||||
Name = SampleInfo.HIT_NORMAL
|
|
||||||
});
|
hold.Head.Samples.Add(new SampleInfo { Name = SampleInfo.HIT_NORMAL });
|
||||||
|
|
||||||
hold.Tail.Samples = HitObject.Samples;
|
hold.Tail.Samples = HitObject.Samples;
|
||||||
|
|
||||||
|
@ -50,10 +50,7 @@ namespace osu.Game.Rulesets.Mania.Objects
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The head note of the hold.
|
/// The head note of the hold.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public readonly Note Head = new Note
|
public readonly Note Head = new Note();
|
||||||
{
|
|
||||||
Samples = new Audio.SampleInfoList()
|
|
||||||
};
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The tail note of the hold.
|
/// The tail note of the hold.
|
||||||
|
Loading…
Reference in New Issue
Block a user