mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +08:00
Fix calls to IsAssignableFrom being back-to-front
This commit is contained in:
parent
d85a4a22e5
commit
1701d69a60
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user