From 83e069feb2a93699aa349266c28bbbfe402f7e15 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Sat, 2 Jun 2012 13:40:49 +0200 Subject: [PATCH] Abort if the clipplane is NULL. --- src/common/model/cm_boxtracing.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/model/cm_boxtracing.c b/src/common/model/cm_boxtracing.c index 58c4213c..4d3b4218 100644 --- a/src/common/model/cm_boxtracing.c +++ b/src/common/model/cm_boxtracing.c @@ -156,6 +156,9 @@ void CM_ClipBoxToBrush (vec3_t mins, vec3_t maxs, vec3_t p1, vec3_t p2, if (enterfrac < 0) enterfrac = 0; + if (clipplane == NULL) + Com_Error(ERR_FATAL, "clipplane was NULL!\n"); + trace->fraction = enterfrac; trace->plane = *clipplane; trace->surface = &(leadside->surface->c);