Skip to content

Commit aecf470

Browse files
Copilotwinnerspiros
andcommitted
Use explicit int cast for GameMode comparison to be clear about Android API int comparison
Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com> Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/75739364-5690-4028-9d88-98f465b77bbc
1 parent f53737c commit aecf470

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

osu.Android/OsuGameActivity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ protected override void OnResume()
134134

135135
if (gameManager != null)
136136
{
137-
bool isPerformanceMode = (GameMode)gameManager.GameMode == GameMode.Performance;
137+
bool isPerformanceMode = gameManager.GameMode == (int)GameMode.Performance;
138138
ApplyPerformanceOptimizations(isPerformanceMode);
139139
}
140140
}

0 commit comments

Comments
 (0)