Fix dedicated compiling errors

This commit is contained in:
Alibek Omarov
2018-06-14 20:31:46 +03:00
parent b5c621ae36
commit d0ff201da2
7 changed files with 15 additions and 6 deletions

View File

@@ -436,7 +436,7 @@ int NET_GetHostByName( const char *hostname )
return ip;
#else
struct hostent *h;
if(!( h = pGetHostByName( copy )))
if(!( h = pGetHostByName( hostname )))
return 0;
return *(int *)h->h_addr_list[0];
#endif