mirror of
https://github.com/ppy/osu.git
synced 2025-03-26 18:57:21 +08:00
Fix incorrect fallback value
This commit is contained in:
parent
5a18547342
commit
285e5abb41
@ -91,7 +91,7 @@ namespace osu.Game.Screens.Edit
|
||||
int newSectionEndIndex = Array.FindIndex(result.PiecesNew, newSectionStartIndex + 1, s => s.StartsWith('['));
|
||||
|
||||
if (newSectionEndIndex == -1)
|
||||
newSectionEndIndex = result.PiecesOld.Length;
|
||||
newSectionEndIndex = result.PiecesNew.Length;
|
||||
|
||||
Debug.Assert(oldSectionStartIndex >= 0);
|
||||
Debug.Assert(newSectionStartIndex >= 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user