1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 06:52:56 +08:00

add debug assert

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-05-27 17:12:15 +07:00
parent 0b600db814
commit e1836cd1b2
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
@ -69,6 +70,8 @@ namespace osu.Game.Overlays.Wiki
{
var panelsNode = html.DocumentNode.SelectNodes("//div[contains(@class, 'wiki-main-page-panel')]").ToArray();
Debug.Assert(panelsNode.Length > 1);
var i = 0;
while (i < panelsNode.Length)