From e4ae3869643978c24b7b396a73aa13b8c5c67dfc Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 12 Sep 2023 20:40:14 +0300 Subject: [PATCH] engine: network: fix incorrect usage of qboolean, when it should be net_gai_state_t --- engine/common/net_ws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/common/net_ws.c b/engine/common/net_ws.c index d77216ba..1fc7436d 100644 --- a/engine/common/net_ws.c +++ b/engine/common/net_ws.c @@ -1066,7 +1066,7 @@ net_gai_state_t NET_StringToAdrNB( const char *string, netadr_t *adr ) if( !Q_stricmp( string, "localhost" ) || !Q_stricmp( string, "loopback" )) { adr->type = NA_LOOPBACK; - return true; + return NET_EAI_OK; } res = NET_StringToSockaddr( string, &s, true, AF_UNSPEC );