summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OnScreenUI.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-12-08 07:00:21 +0100
committerGitHub <noreply@github.com>2023-12-08 07:00:21 +0100
commit7eb02ecfa452578d9596501cc097d26b80a15931 (patch)
tree73c20fc437af9bae28b6e9f2ea614d2872c8bbf7 /Source/Core/VideoCommon/OnScreenUI.cpp
parente0f41115612d0d4279c9037f3f79b68e50809052 (diff)
parente992225b887389120ec7cfbb48a71a8ada421395 (diff)
Merge pull request #12361 from LillyJadeKatrin/retroachievements-bugfix
Bugfix - small square in bottom right corner
Diffstat (limited to 'Source/Core/VideoCommon/OnScreenUI.cpp')
-rw-r--r--Source/Core/VideoCommon/OnScreenUI.cpp2
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";