From: lordhavoc Date: Tue, 5 Feb 2002 15:22:07 +0000 (+0000) Subject: check if model is NULL when doing trace checking X-Git-Tag: RELEASE_0_2_0_RC1~655 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=44c9a08f2c4035bf5798e663bd4fbad506fd152e;p=xonotic%2Fdarkplaces.git check if model is NULL when doing trace checking git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1497 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_main.c b/sv_main.c index 7b9497b6..ff6f0fa5 100644 --- a/sv_main.c +++ b/sv_main.c @@ -647,7 +647,7 @@ void SV_WriteEntitiesToClient (client_t *client, edict_t *clent, sizebuf_t *msg) } // don't try to cull embedded brush models with this, they're sometimes huge (spanning several rooms) - if (sv_cullentities_trace.integer && (model->type != mod_brush || model->name[0] != '*')) + if (sv_cullentities_trace.integer && (model == NULL || model->type != mod_brush || model->name[0] != '*')) { // LordHavoc: test random offsets, to maximize chance of detection testorigin[0] = lhrandom(entmins[0], entmaxs[0]);