1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-28 15:50:19 +08:00

Avoid unverifiable capture.

This commit is contained in:
Huo Yaoyuan
2017-06-22 20:34:28 +08:00
Unverified
parent 1d4add9079
commit bb2e63e714
+2 -1
View File
@@ -117,7 +117,8 @@ namespace osu.Game.Overlays
for (int i = 0; i < u.ProfileOrder.Length; i++)
{
var sec = sections.FirstOrDefault(s => s.Identifier == u.ProfileOrder[i]);
string id = u.ProfileOrder[i];
var sec = sections.FirstOrDefault(s => s.Identifier == id);
if (sec != null)
{
sec.Depth = -i;