From: havoc Date: Thu, 4 Sep 2003 09:25:06 +0000 (+0000) Subject: fix a nasty crash with multiplayer servers (thanks to Willis for finding this bug) X-Git-Tag: xonotic-v0.1.0preview~6400 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=09a0b8acf56b2ff4e4f7dbd54249264078c8488d;p=xonotic%2Fdarkplaces.git fix a nasty crash with multiplayer servers (thanks to Willis for finding this bug) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3434 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_main.c b/sv_main.c index 8810480e..d849693b 100644 --- a/sv_main.c +++ b/sv_main.c @@ -1347,7 +1347,7 @@ void SV_UpdateToReliableMessages (void) for (i = 0, host_client = svs.clients;i < svs.maxclients;i++, host_client++) { // update the host_client fields we care about according to the entity fields - sv_player = host_client->edict; + sv_player = EDICT_NUM(i+1); s = PR_GetString(sv_player->v->netname); if (s != host_client->name) {