From b735e3f40d8c8bd113d949ccf72416a23c8f1f9a Mon Sep 17 00:00:00 2001 From: gibbed Date: Sat, 8 May 2021 10:06:53 -0500 Subject: [PATCH] [XAM] Fix dummy achievement details count. --- src/xenia/kernel/xam/xam_user.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/kernel/xam/xam_user.cc b/src/xenia/kernel/xam/xam_user.cc index f8b88d772..b82d80001 100644 --- a/src/xenia/kernel/xam/xam_user.cc +++ b/src/xenia/kernel/xam/xam_user.cc @@ -702,7 +702,7 @@ dword_result_t XamUserCreateAchievementEnumerator(dword_t title_id, return result; } - uint32_t dummy_count = std::max(20u, uint32_t(count)); + uint32_t dummy_count = std::min(20u, uint32_t(count)); for (uint32_t i = 0; i < dummy_count; ++i) { auto item = XStaticAchievementEnumerator::AchievementDetails{ i, u"Dummy Text", u"Dummy Text", u"Dummy Text"};