From: divverent Date: Thu, 5 Mar 2015 09:33:09 +0000 (+0000) Subject: Another NULL with broken worldmodel. X-Git-Tag: xonotic-v0.8.1~8^2~12 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8f27d586b18115ff1a2ff6c0f836a10ea9f0de4c;p=xonotic%2Fdarkplaces.git Another NULL with broken worldmodel. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12191 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_main.c b/sv_main.c index a5eed884..f1f1248a 100644 --- a/sv_main.c +++ b/sv_main.c @@ -1686,7 +1686,7 @@ static void SV_MarkWriteEntityStateToClient(entity_state_t *s) } // or not seen by random tracelines - if (sv_cullentities_trace.integer && !isbmodel && sv.worldmodel->brush.TraceLineOfSight && !r_trippy.integer) + if (sv_cullentities_trace.integer && !isbmodel && sv.worldmodel && sv.worldmodel->brush.TraceLineOfSight && !r_trippy.integer) { int samples = s->number <= svs.maxclients