summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_bsp.c
diff options
context:
space:
mode:
authorHenry Stratmann III <henry3writes@gmail.com>2013-07-18 20:11:23 -0500
committerTim Angus <tim@ngus.net>2014-06-17 17:43:33 +0100
commit342ac4847531ba846ca38103527a1fc018919f5b (patch)
treebcc47eeec25d9d4797b1b646f1fb4b33dd029220 /src/renderergl2/tr_bsp.c
parent99079643d058bc9dc839b6df032984cfc0d4406c (diff)
Add assignment below declarations otherwise compiling fails with msvc
Signed-off-by: Zack Middleton <zturtleman@gmail.com>
Diffstat (limited to 'src/renderergl2/tr_bsp.c')
-rw-r--r--src/renderergl2/tr_bsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderergl2/tr_bsp.c b/src/renderergl2/tr_bsp.c
index 456456fa..adf14c06 100644
--- a/src/renderergl2/tr_bsp.c
+++ b/src/renderergl2/tr_bsp.c
@@ -3357,12 +3357,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));