fix(glue): reset category counts in CRealmList::UpdateList

This commit is contained in:
fallenoak 2025-10-09 00:46:00 -05:00
parent 7b7f2a7c69
commit 30699a72cf
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -115,8 +115,15 @@ uint32_t CRealmList::Sub4DE910(uint32_t a1) {
} }
void CRealmList::UpdateList() { void CRealmList::UpdateList() {
// Reset category counts
for (uint32_t i = 0; i < CRealmList::s_categories.Count(); i++) {
auto realmCategory = CRealmList::s_categories[i];
realmCategory->uint14 = 0;
}
CRealmList::s_avgLoad = 0.0f; CRealmList::s_avgLoad = 0.0f;
int32_t category = -1; int32_t category = -1;
auto realmCount = ClientServices::GetInstance()->m_realmList.Count(); auto realmCount = ClientServices::GetInstance()->m_realmList.Count();
for (int32_t realmIndex = 0; realmIndex < realmCount; realmIndex++) { for (int32_t realmIndex = 0; realmIndex < realmCount; realmIndex++) {