mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +00:00
Abort if the clipplane is NULL.
This commit is contained in:
parent
e11a15308b
commit
83e069feb2
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue