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

Fix calls to IsAssignableFrom being back-to-front

This commit is contained in:
Dean Herbert 2021-02-19 14:33:08 +09:00
parent d85a4a22e5
commit 1701d69a60

View File

@ -84,7 +84,7 @@ namespace osu.Game
// we may already be at the target screen type.
var type = current.GetType();
if (validScreens.Any(t => type.IsAssignableFrom(t)) && !beatmap.Disabled)
if (validScreens.Any(t => t.IsAssignableFrom(type)) && !beatmap.Disabled)
{
finalAction(current);
Cancel();
@ -93,7 +93,7 @@ namespace osu.Game
while (current != null)
{
if (validScreens.Any(t => type.IsAssignableFrom(t)))
if (validScreens.Any(t => t.IsAssignableFrom(type)))
{
current.MakeCurrent();
break;