1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 17:02:57 +08:00

debug assert closest != null

This commit is contained in:
cdwcgt 2023-07-30 01:39:56 +09:00
parent 033c9091c0
commit 625ed729ee
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2

View File

@ -136,11 +136,11 @@ namespace osu.Game.Tournament.Screens.Drawings.Components
closest = stc;
}
Trace.Assert(closest != null, "closest != null");
Debug.Assert(closest != null, "closest != null");
offset += DrawWidth / 2f - (closest.AsNonNull().Position.X + closest.AsNonNull().DrawWidth / 2f);
offset += DrawWidth / 2f - (closest.Position.X + closest.DrawWidth / 2f);
ScrollingTeam st = closest.AsNonNull();
ScrollingTeam st = closest;
availableTeams.RemoveAll(at => at == st.Team);