From db77a84453eccd1c5b3a37c45753342b94066303 Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 7 Feb 2014 09:39:18 +0000 Subject: [PATCH] try that again. I hate platform-specific code. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4598 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/net_wins.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/common/net_wins.c b/engine/common/net_wins.c index 209224a04..535a77e77 100644 --- a/engine/common/net_wins.c +++ b/engine/common/net_wins.c @@ -2194,8 +2194,8 @@ int FTENET_GetLocalAddress(int port, qboolean ipx, qboolean ipv4, qboolean ipv6, #endif 0) { - SockadrToNetadr(&ifa->ifa_addr, addresses[idx]); - addresses[idx]->port = port; + SockadrToNetadr((struct sockaddr_qstorage*)&ifa->ifa_addr, &addresses[idx]); + addresses[idx].port = port; adrflags[idx] = 0; idx++; }