mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 09:42:55 +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.
|
// we may already be at the target screen type.
|
||||||
var type = current.GetType();
|
var type = current.GetType();
|
||||||
|
|
||||||
if (validScreens.Any(t => type.IsAssignableFrom(t)) && !beatmap.Disabled)
|
if (validScreens.Any(t => t.IsAssignableFrom(type)) && !beatmap.Disabled)
|
||||||
{
|
{
|
||||||
finalAction(current);
|
finalAction(current);
|
||||||
Cancel();
|
Cancel();
|
||||||
@ -93,7 +93,7 @@ namespace osu.Game
|
|||||||
|
|
||||||
while (current != null)
|
while (current != null)
|
||||||
{
|
{
|
||||||
if (validScreens.Any(t => type.IsAssignableFrom(t)))
|
if (validScreens.Any(t => t.IsAssignableFrom(type)))
|
||||||
{
|
{
|
||||||
current.MakeCurrent();
|
current.MakeCurrent();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user