From db85b61e9415c4655899aef9cff0d859c4ecf363 Mon Sep 17 00:00:00 2001 From: Henry Stratmann III Date: Thu, 18 Jul 2013 20:11:23 -0500 Subject: [PATCH] Add assignment below declarations otherwise compiling fails with msvc Signed-off-by: Zack Middleton --- code/renderergl2/tr_bsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/renderergl2/tr_bsp.c b/code/renderergl2/tr_bsp.c index 05b933e8..77a3092f 100644 --- a/code/renderergl2/tr_bsp.c +++ b/code/renderergl2/tr_bsp.c @@ -3356,12 +3356,12 @@ void RE_LoadWorldMap( const char *name ) { if (0) { world_t *w; - - w = &s_worldData; uint8_t *primaryLightGrid, *data; int lightGridSize; int i; + w = &s_worldData; + lightGridSize = w->lightGridBounds[0] * w->lightGridBounds[1] * w->lightGridBounds[2]; primaryLightGrid = ri.Malloc(lightGridSize * sizeof(*primaryLightGrid));