]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - netconn.c
more preparation for DP_SV_BOTCLIENT, removed a number of unneeded netconnection...
[xonotic/darkplaces.git] / netconn.c
index 49ca4dca3ba1e2acd62819c4597a65b28798c3c1..a07ce921ca0a1829eeccbd49ebdca239109c7bf3 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -1310,7 +1310,7 @@ int NetConn_ServerParsePacket(lhnetsocket_t *mysocket, qbyte *data, int length,
                                                        MSG_WriteLong(&net_message, client->colors);
                                                        MSG_WriteLong(&net_message, (int)client->edict->v->frags);
                                                        MSG_WriteLong(&net_message, (int)(realtime - client->connecttime));
-                                                       MSG_WriteString(&net_message, client->netconnection->address);
+                                                       MSG_WriteString(&net_message, client->netconnection ? client->netconnection->address : "botclient");
                                                        *((int *)net_message.data) = BigLong(NETFLAG_CTL | (net_message.cursize & NETFLAG_LENGTH_MASK));
                                                        NetConn_Write(mysocket, net_message.data, net_message.cursize, peeraddress);
                                                        SZ_Clear(&net_message);