diff --git a/uquake/net_wins.c b/uquake/net_wins.c index 7343f72..f6f14ec 100644 --- a/uquake/net_wins.c +++ b/uquake/net_wins.c @@ -195,7 +195,7 @@ int WINS_Init (void) } // if the quake hostname isn't set, set it to the machine name - if (Q_strcmp(hostname.string, "UNNAMED") == 0) + if (Q_strcmp(hostname->string, "UNNAMED") == 0) { // see if it's a text IP address (well, close enough) for (p = buff; *p; p++) diff --git a/uquake/net_wipx.c b/uquake/net_wipx.c index 4b72ba2..5b0b788 100644 --- a/uquake/net_wipx.c +++ b/uquake/net_wipx.c @@ -83,7 +83,7 @@ int WIPX_Init (void) if (pgethostname(buff, MAXHOSTNAMELEN) == 0) { // if the quake hostname isn't set, set it to the machine name - if (Q_strcmp(hostname.string, "UNNAMED") == 0) + if (Q_strcmp(hostname->string, "UNNAMED") == 0) { // see if it's a text IP address (well, close enough) for (p = buff; *p; p++)