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