From e992225b887389120ec7cfbb48a71a8ada421395 Mon Sep 17 00:00:00 2001 From: LillyJadeKatrin Date: Fri, 8 Dec 2023 00:33:29 -0500 Subject: [PATCH] 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. --- Source/Core/VideoCommon/OnScreenUI.cpp | 2 ++ 1 file changed, 2 insertions(+) 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";