From 44c9a08f2c4035bf5798e663bd4fbad506fd152e Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Tue, 5 Feb 2002 15:22:07 +0000 Subject: [PATCH] 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 --- sv_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- 2.39.2