Another NULL with broken worldmodel.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 5 Mar 2015 09:33:09 +0000 (09:33 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 5 Mar 2015 09:33:09 +0000 (09:33 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12191 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index a5eed88..f1f1248 100644 (file)
--- 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