fix(glue): correct category selection logic

This commit is contained in:
fallenoak 2025-10-09 23:08:09 -05:00
parent 32275f7b16
commit 62df356940
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -170,9 +170,12 @@ void CRealmList::UpdateList() {
// TODO sort realm list // TODO sort realm list
CRealmList::s_selectedCategory = 0;
for (int32_t i = 0; i < CRealmList::s_categories.Count(); i++) { for (int32_t i = 0; i < CRealmList::s_categories.Count(); i++) {
if (CRealmList::s_categories[i]->m_category->GetID() == category) { if (CRealmList::s_categories[i]->m_category->GetID() == category) {
CRealmList::s_selectedCategory = i; CRealmList::s_selectedCategory = i;
break;
} }
} }