]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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 a5eed884bdade7f6e4a780a0ee991877a44f5781..f1f1248ae07cb07fb1cf421b7636963892f1a4b2 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