engine: net_ws: fix misleading error when comparing IPv6 addresses

This commit is contained in:
Alibek Omarov 2024-11-15 16:41:42 +03:00
parent ea88bb88b2
commit 77fb2d0eb2

View file

@ -863,7 +863,8 @@ qboolean NET_CompareAdr( const netadr_t a, const netadr_t b )
if( a.type6 == NA_IP6 ) if( a.type6 == NA_IP6 )
{ {
if( a.port == b.port && !NET_NetadrIP6Compare( &a, &b )) if( a.port == b.port && !NET_NetadrIP6Compare( &a, &b ))
return true; return true;
return false;
} }
Con_DPrintf( S_ERROR "%s: bad address type\n", __func__ ); Con_DPrintf( S_ERROR "%s: bad address type\n", __func__ );