Skip to content

Commit

Permalink
Fix resolving IPv6 favorites in Team Arena UI
Browse files Browse the repository at this point in the history
  • Loading branch information
zturtleman committed Feb 8, 2013
1 parent 2b7bf5b commit 7b34987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/client/cl_ui.c
Expand Up @@ -146,7 +146,7 @@ static int LAN_AddServer(int source, const char *name, const char *address) {
break;
}
if (servers && *count < max) {
NET_StringToAdr( address, &adr, NA_IP );
NET_StringToAdr( address, &adr, NA_UNSPEC );
for ( i = 0; i < *count; i++ ) {
if (NET_CompareAdr(servers[i].adr, adr)) {
break;
Expand Down Expand Up @@ -190,7 +190,7 @@ static void LAN_RemoveServer(int source, const char *addr) {
}
if (servers) {
netadr_t comp;
NET_StringToAdr( addr, &comp, NA_IP );
NET_StringToAdr( addr, &comp, NA_UNSPEC );
for (i = 0; i < *count; i++) {
if (NET_CompareAdr( comp, servers[i].adr)) {
int j = i;
Expand Down

0 comments on commit 7b34987

Please sign in to comment.