mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 10:22:56 +08:00
Add asserts of HitObjects indices
This commit is contained in:
parent
c5b6908e71
commit
b0052210b6
@ -3,6 +3,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using DiffPlex;
|
||||
@ -35,6 +36,9 @@ namespace osu.Game.Screens.Edit
|
||||
int oldHitObjectsIndex = Array.IndexOf(result.PiecesOld, "[HitObjects]");
|
||||
int newHitObjectsIndex = Array.IndexOf(result.PiecesNew, "[HitObjects]");
|
||||
|
||||
Debug.Assert(oldHitObjectsIndex >= 0);
|
||||
Debug.Assert(newHitObjectsIndex >= 0);
|
||||
|
||||
var toRemove = new List<int>();
|
||||
var toAdd = new List<int>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user