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:
parent
0b600db814
commit
e1836cd1b2
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user