[XAM] Fix adding dummy achievement details.
[XAM] Fix infinite loop in adding dummy achievement details when count>255.
This commit is contained in:
parent
084b8c5dbe
commit
1c78c9d75d
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue