[XAM] Fix adding dummy achievement details.

[XAM] Fix infinite loop in adding dummy achievement details when
count>255.
This commit is contained in:
gibbed 2021-05-08 08:56:07 -05:00 committed by Rick Gibbed
parent 084b8c5dbe
commit 1c78c9d75d
1 changed files with 1 additions and 1 deletions

View File

@ -702,7 +702,7 @@ dword_result_t XamUserCreateAchievementEnumerator(dword_t title_id,
return result; return result;
} }
for (uint8_t i = 0; i < count; ++i) { for (uint32_t i = 0; i < count; ++i) {
auto item = XStaticAchievementEnumerator::AchievementDetails{ auto item = XStaticAchievementEnumerator::AchievementDetails{
i, u"Dummy Text", u"Dummy Text", u"Dummy Text"}; i, u"Dummy Text", u"Dummy Text", u"Dummy Text"};
e->AppendItem(item); e->AppendItem(item);