mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
fix(glue): correct category selection logic
This commit is contained in:
parent
32275f7b16
commit
62df356940
@ -170,9 +170,12 @@ void CRealmList::UpdateList() {
|
||||
|
||||
// TODO sort realm list
|
||||
|
||||
CRealmList::s_selectedCategory = 0;
|
||||
|
||||
for (int32_t i = 0; i < CRealmList::s_categories.Count(); i++) {
|
||||
if (CRealmList::s_categories[i]->m_category->GetID() == category) {
|
||||
CRealmList::s_selectedCategory = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user