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