summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2009-10-10 07:12:38 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:45 +0000
commit902ab6c0138eb3b93b3f3cbae1c6af7d0935c038 (patch)
tree5d0f4fafd3730fcfd2a2350aeaf7ded7f9766dcc
parentc1da521a42a4902a7f788015a74dcbebdf578293 (diff)
* Fix restart causing a crash due to the new configstrings code (kevlarman, Rezyn)
-rw-r--r--src/server/sv_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/sv_init.c b/src/server/sv_init.c
index 0de275ce..11bd8d90 100644
--- a/src/server/sv_init.c
+++ b/src/server/sv_init.c
@@ -38,7 +38,7 @@ static void SV_SendConfigstring(client_t *client, int index)
int len;
if( sv.configstrings[index].restricted && Com_ClientListContains(
- &sv.configstrings[index].clientList, client->gentity->s.number ) ) {
+ &sv.configstrings[index].clientList, client - svs.clients ) ) {
// Send a blank config string for this client if it's listed
SV_SendServerCommand( client, "cs %i \"\"\n", index );
return;