1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 15:03:13 +08:00

Combine construction and assignment.

This commit is contained in:
smoogipooo 2017-04-21 19:12:16 +09:00
parent a999c42d8a
commit cae4c7c6e5

View File

@ -108,10 +108,9 @@ namespace osu.Game.Rulesets.Objects.Legacy
nodeSoundTypes.Add(soundType);
// Read any per-node sound types
string[] adds = null;
if (split.Length > 8 && split[8].Length > 0)
{
adds = split[8].Split('|');
string[] adds = split[8].Split('|');
for (int i = 0; i < nodes; i++)
{
if (i >= adds.Length)