From 0e74fc8a9bcfa6a908877a566c3e3d090645e3a7 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 10 Apr 2003 04:03:59 +0000 Subject: [PATCH] Mod_FindNonSolidLocation fixed for no map case (again) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2942 d7cf8633-e32d-0410-b094-e92efae38249 --- model_brush.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/model_brush.c b/model_brush.c index 9492f769..5bfc0ef5 100644 --- a/model_brush.c +++ b/model_brush.c @@ -253,6 +253,11 @@ void Mod_FindNonSolidLocation(vec3_t in, vec3_t out, model_t *model, float radiu { int i; findnonsolidlocationinfo_t info; + if (model == NULL) + { + VectorCopy(in, out); + return; + } VectorCopy(in, info.center); info.radius = radius; info.model = model; -- 2.39.2