1
0
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:
Dan Balasescu 2022-06-13 16:55:46 +09:00
parent 5a18547342
commit 285e5abb41

View File

@ -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);