mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 23:12:56 +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
|
||||
};
|
||||
|
||||
hold.Head.Samples.Add(new SampleInfo
|
||||
{
|
||||
Name = SampleInfo.HIT_NORMAL
|
||||
});
|
||||
if (hold.Head.Samples == null)
|
||||
hold.Head.Samples = new SampleInfoList();
|
||||
|
||||
hold.Head.Samples.Add(new SampleInfo { Name = SampleInfo.HIT_NORMAL });
|
||||
|
||||
hold.Tail.Samples = HitObject.Samples;
|
||||
|
||||
|
@ -50,10 +50,7 @@ namespace osu.Game.Rulesets.Mania.Objects
|
||||
/// <summary>
|
||||
/// The head note of the hold.
|
||||
/// </summary>
|
||||
public readonly Note Head = new Note
|
||||
{
|
||||
Samples = new Audio.SampleInfoList()
|
||||
};
|
||||
public readonly Note Head = new Note();
|
||||
|
||||
/// <summary>
|
||||
/// The tail note of the hold.
|
||||
|
Loading…
Reference in New Issue
Block a user