1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 04:53:12 +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. // See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics;
using System.Linq; using System.Linq;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; 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(); var panelsNode = html.DocumentNode.SelectNodes("//div[contains(@class, 'wiki-main-page-panel')]").ToArray();
Debug.Assert(panelsNode.Length > 1);
var i = 0; var i = 0;
while (i < panelsNode.Length) while (i < panelsNode.Length)