]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a nasty crash with multiplayer servers (thanks to Willis for finding this bug)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 4 Sep 2003 09:25:06 +0000 (09:25 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 4 Sep 2003 09:25:06 +0000 (09:25 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3434 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 8810480ed3ca00ae6d48e91e1c2ddd984a01b8b7..d849693b1694dac42daf3800b5140ef58fc7a772 100644 (file)
--- 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)
                {