mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-10 16:33:39 +03:00
fix(glue): correct category selection logic
This commit is contained in:
1 file changed
+3
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user