mirror of
https://github.com/osukey/osukey.git
synced 2025-05-11 16:47:19 +09: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('['));
|
int newSectionEndIndex = Array.FindIndex(result.PiecesNew, newSectionStartIndex + 1, s => s.StartsWith('['));
|
||||||
|
|
||||||
if (newSectionEndIndex == -1)
|
if (newSectionEndIndex == -1)
|
||||||
newSectionEndIndex = result.PiecesOld.Length;
|
newSectionEndIndex = result.PiecesNew.Length;
|
||||||
|
|
||||||
Debug.Assert(oldSectionStartIndex >= 0);
|
Debug.Assert(oldSectionStartIndex >= 0);
|
||||||
Debug.Assert(newSectionStartIndex >= 0);
|
Debug.Assert(newSectionStartIndex >= 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user