From b47a49a03370e7ea42f47623b9f72a5ca799f0e7 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 3 Oct 2009 11:52:53 +0000 Subject: * Merge ioq3-r1423 + IPv6 + VoIP + Stereo rendering + Other minor stuff --- src/renderer/tr_bsp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/renderer/tr_bsp.c') 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; -- cgit