diff options
Diffstat (limited to 'src/renderer/tr_bsp.c')
-rw-r--r-- | src/renderer/tr_bsp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/renderer/tr_bsp.c b/src/renderer/tr_bsp.c index 2eff8349..1f63f9f0 100644 --- a/src/renderer/tr_bsp.c +++ b/src/renderer/tr_bsp.c @@ -1322,6 +1322,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; |