Abort if the clipplane is NULL.

This commit is contained in:
Yamagi Burmeister 2012-06-02 13:40:49 +02:00
parent e11a15308b
commit 83e069feb2
1 changed files with 3 additions and 0 deletions

View File

@ -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);