From 09a0b8acf56b2ff4e4f7dbd54249264078c8488d Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 4 Sep 2003 09:25:06 +0000 Subject: [PATCH] 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 --- sv_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.2