From b80af9beb3990c426789ca3bd1335255688852cd Mon Sep 17 00:00:00 2001 From: Chairn Date: Wed, 15 Jun 2022 21:09:09 +0200 Subject: [PATCH] Fix wrongly corrected naming introduced in #5391 --- src/engine/client/serverbrowser.cpp | 10 +++++----- src/engine/client/serverbrowser.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/engine/client/serverbrowser.cpp b/src/engine/client/serverbrowser.cpp index c00f15ed5..5df72a3ce 100644 --- a/src/engine/client/serverbrowser.cpp +++ b/src/engine/client/serverbrowser.cpp @@ -573,7 +573,7 @@ CServerBrowser::CServerEntry *CServerBrowser::Add(const NETADDR &Addr) CNetworkCountry *pCntr = &Network.m_aCountries[i]; for(int j = 0; j < pCntr->m_NumServers; j++) { - if(net_addr_comp(&Addr, &pCntr->m_vServers[j]) == 0) + if(net_addr_comp(&Addr, &pCntr->m_aServers[j]) == 0) { pEntry->m_Info.m_Official = true; break; @@ -1016,7 +1016,7 @@ void CServerBrowser::UpdateFromHttp() if(DDNetFiltered(pExcludeTypes, pCntr->m_aTypes[g])) continue; - vWantedAddresses.push_back(CWantedAddr{pCntr->m_vServers[g], false, false}); + vWantedAddresses.push_back(CWantedAddr{pCntr->m_aServers[g], false, false}); } } } @@ -1415,7 +1415,7 @@ void CServerBrowser::LoadDDNetServers() continue; } const char *pStr = json_string_get(pAddr); - net_addr_from_str(&pCntr->m_vServers[pCntr->m_NumServers], pStr); + net_addr_from_str(&pCntr->m_aServers[pCntr->m_NumServers], pStr); str_copy(pCntr->m_aTypes[pCntr->m_NumServers], pType, sizeof(pCntr->m_aTypes[pCntr->m_NumServers])); } } @@ -1434,7 +1434,7 @@ void CServerBrowser::RecheckOfficial() CNetworkCountry *pCntr = &Network.m_aCountries[i]; for(int j = 0; j < pCntr->m_NumServers; j++) { - CServerEntry *pEntry = Find(pCntr->m_vServers[j]); + CServerEntry *pEntry = Find(pCntr->m_aServers[j]); if(pEntry) { pEntry->m_Info.m_Official = true; @@ -1538,7 +1538,7 @@ const char *CServerBrowser::GetTutorialServer() CNetworkCountry *pCntr = &pNetwork->m_aCountries[i]; for(int j = 0; j < pCntr->m_NumServers; j++) { - CServerEntry *pEntry = Find(pCntr->m_vServers[j]); + CServerEntry *pEntry = Find(pCntr->m_aServers[j]); if(!pEntry) continue; if(str_find(pEntry->m_Info.m_aName, "(Tutorial)") == 0) diff --git a/src/engine/client/serverbrowser.h b/src/engine/client/serverbrowser.h index c7827d7fb..e517aea86 100644 --- a/src/engine/client/serverbrowser.h +++ b/src/engine/client/serverbrowser.h @@ -42,7 +42,7 @@ public: char m_aName[256]; int m_FlagID; - NETADDR m_vServers[MAX_SERVERS]; + NETADDR m_aServers[MAX_SERVERS]; char m_aTypes[MAX_SERVERS][32]; int m_NumServers;