aboutsummaryrefslogtreecommitdiffstats
path: root/code/renderer/tr_bsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/renderer/tr_bsp.c')
-rw-r--r--code/renderer/tr_bsp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/code/renderer/tr_bsp.c b/code/renderer/tr_bsp.c
index c340e13..72e88f3 100644
--- a/code/renderer/tr_bsp.c
+++ b/code/renderer/tr_bsp.c
@@ -1321,6 +1321,9 @@ static void R_LoadSubmodels( lump_t *l ) {
model = R_AllocModel();
assert( model != NULL ); // this should never happen
+ if ( model == NULL ) {
+ ri.Error(ERR_DROP, "R_LoadSubmodels: R_AllocModel() failed");
+ }
model->type = MOD_BRUSH;
model->bmodel = out;