From: havoc Date: Sun, 26 Feb 2006 09:36:46 +0000 (+0000) Subject: fix crash in nq connect (oops) X-Git-Tag: xonotic-v0.1.0preview~4278 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d3450aec3f3255630d73b363815e7381c0a70960;p=xonotic%2Fdarkplaces.git fix crash in nq connect (oops) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6036 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_parse.c b/cl_parse.c index d1009147..a99cb193 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -950,7 +950,6 @@ void CL_ParseServerInfo (void) int i; protocolversion_t protocol; int nummodels, numsounds; - entity_t *ent; Con_DPrint("Serverinfo packet received.\n"); @@ -1145,8 +1144,8 @@ void CL_ParseServerInfo (void) } // we now have the worldmodel so we can set up the game world - ent->render.model = cl.worldmodel = cl.model_precache[1]; - CL_BoundingBoxForEntity(&ent->render); + cl_entities[0].render.model = cl.worldmodel = cl.model_precache[1]; + CL_BoundingBoxForEntity(&cl_entities[0].render); R_Modules_NewMap(); CL_CGVM_Start(); }