1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 09:27:34 +08:00

Avoid unverifiable capture.

This commit is contained in:
Huo Yaoyuan 2017-06-22 20:34:28 +08:00
parent 1d4add9079
commit bb2e63e714

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;