From 61917e9828e2429064de713f43a398f083e6885e Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 1 Sep 2014 11:31:39 +0100 Subject: Fix renderergl1 warnings --- src/renderergl1/tr_bsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/renderergl1/tr_bsp.c') diff --git a/src/renderergl1/tr_bsp.c b/src/renderergl1/tr_bsp.c index dc695cce..9463784e 100644 --- a/src/renderergl1/tr_bsp.c +++ b/src/renderergl1/tr_bsp.c @@ -1071,7 +1071,7 @@ int R_StitchPatches( int grid1num, int grid2num ) { } for (m = 0; m < 2; m++) { - if (grid2->height >= MAX_GRID_SIZE) + if (!grid2 || grid2->height >= MAX_GRID_SIZE) break; if (m) offset2 = grid2->width-1; else offset2 = 0; -- cgit