From b247f3e076a0922339ed40e9bb757b579c3e59af Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 9 Jul 2015 16:22:43 +0000 Subject: [PATCH] fix crash caused by missing bsp. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4938 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/r_surf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/client/r_surf.c b/engine/client/r_surf.c index ddfa10802..59c0c8dd0 100644 --- a/engine/client/r_surf.c +++ b/engine/client/r_surf.c @@ -2961,7 +2961,8 @@ TRACE(("dbg: Surf_NewMap: tp\n")); VectorCopy(mins, cl_static_entities[i].ent.origin); VectorCopy(maxs, cl_static_entities[i].ent.origin); } - cl.worldmodel->funcs.FindTouchedLeafs(cl.worldmodel, &cl_static_entities[i].pvscache, mins, maxs); + if (cl.worldmodel->funcs.FindTouchedLeafs) + cl.worldmodel->funcs.FindTouchedLeafs(cl.worldmodel, &cl_static_entities[i].pvscache, mins, maxs); cl_static_entities[i].emit = NULL; }