1
0
mirror of https://github.com/ppy/osu synced 2025-03-25 04:18:03 +00: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); nodeSoundTypes.Add(soundType);
// Read any per-node sound types // Read any per-node sound types
string[] adds = null;
if (split.Length > 8 && split[8].Length > 0) if (split.Length > 8 && split[8].Length > 0)
{ {
adds = split[8].Split('|'); string[] adds = split[8].Split('|');
for (int i = 0; i < nodes; i++) for (int i = 0; i < nodes; i++)
{ {
if (i >= adds.Length) if (i >= adds.Length)