feat(db): improve accuracy of db records

This commit is contained in:
fallenoak 2023-02-15 21:50:45 -06:00
parent 41554f32b4
commit 57db9ca2a5
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
6 changed files with 48 additions and 22 deletions

View file

@ -52,7 +52,7 @@ void CRealmList::UpdateList() {
for (int32_t categoryIndex = 0; categoryIndex < CRealmList::s_categories.Count(); categoryIndex++) {
auto realmCategory = CRealmList::s_categories[categoryIndex];
if (realmInfo->category != realmCategory->m_category->m_ID) {
if (realmInfo->category != realmCategory->m_category->GetID()) {
continue;
}
@ -76,7 +76,7 @@ void CRealmList::UpdateList() {
// TODO sort realm list
for (int32_t i = 0; i < CRealmList::s_categories.Count(); i++) {
if (CRealmList::s_categories[i]->m_category->m_ID == category) {
if (CRealmList::s_categories[i]->m_category->GetID() == category) {
CRealmList::s_selectedCategory = i;
}
}