From 51a624d95c4e11c77893369c1ea94093815ff1de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Sun, 24 Mar 2024 12:43:07 +0100 Subject: [PATCH] Use array index 0 explicitly instead of using array as pointer --- src/engine/client/client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index eee12104e..fb2b46965 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -2204,7 +2204,7 @@ void CClient::LoadDDNetInfo() NETADDR Addr; if(!net_addr_from_str(&Addr, StunServersIpv6[0])) { - m_aNetClient->FeedStunServer(Addr); + m_aNetClient[CONN_MAIN].FeedStunServer(Addr); } } const json_value &StunServersIpv4 = DDNetInfo["stun-servers-ipv4"]; @@ -2213,7 +2213,7 @@ void CClient::LoadDDNetInfo() NETADDR Addr; if(!net_addr_from_str(&Addr, StunServersIpv4[0])) { - m_aNetClient->FeedStunServer(Addr); + m_aNetClient[CONN_MAIN].FeedStunServer(Addr); } } const json_value &ConnectingIp = DDNetInfo["connecting-ip"];