From 1ba75d61830db8502f913d475eef1879a8324bbc Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 8 Sep 2005 01:58:25 +0000 Subject: [PATCH] Added an additional saftey check. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1290 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_parse.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/client/cl_parse.c b/engine/client/cl_parse.c index 9c9b2b38e..c3e736bb5 100644 --- a/engine/client/cl_parse.c +++ b/engine/client/cl_parse.c @@ -587,6 +587,9 @@ void Model_NextDownload (void) } cl.worldmodel = cl.model_precache[1]; + + if (!cl.worldmodel) + Host_EndGame("Worldmodel wasn't sent\n"); } if (cl.worldmodel->type != mod_brush && cl.worldmodel->type != mod_heightmap) @@ -1276,7 +1279,7 @@ void CL_ParseServerData (void) sizeofangle = 1; } - svcnt = MSG_ReadLong (); + svcnt = MSG_ReadLong (); // game directory str = MSG_ReadString ();