diff options
| author | LillyJadeKatrin <lilly.kitty.1988@gmail.com> | 2023-12-08 00:33:29 -0500 |
|---|---|---|
| committer | LillyJadeKatrin <lilly.kitty.1988@gmail.com> | 2023-12-08 00:33:29 -0500 |
| commit | e992225b887389120ec7cfbb48a71a8ada421395 (patch) | |
| tree | 73c20fc437af9bae28b6e9f2ea614d2872c8bbf7 /Source/Core/VideoCommon/OnScreenUI.cpp | |
| parent | e0f41115612d0d4279c9037f3f79b68e50809052 (diff) | |
Bugfix - small square in bottom right corner
Fixed a bug in OSUI created by the challenge icons that caused a small rectangle to appear in the bottom right corner of the screen.
Diffstat (limited to 'Source/Core/VideoCommon/OnScreenUI.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/OnScreenUI.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/OnScreenUI.cpp b/Source/Core/VideoCommon/OnScreenUI.cpp index b2f3e86682..11953b2f4c 100644 --- a/Source/Core/VideoCommon/OnScreenUI.cpp +++ b/Source/Core/VideoCommon/OnScreenUI.cpp @@ -333,6 +333,8 @@ void OnScreenUI::DrawChallenges() std::lock_guard lg{*AchievementManager::GetInstance()->GetLock()}; const AchievementManager::NamedIconMap& challenge_icons = AchievementManager::GetInstance()->GetChallengeIcons(); + if (challenge_icons.size() == 0) + return; const std::string window_name = "Challenges"; |
