From dd0afd1978b98167a7705c8247a3dae4b73f8f18 Mon Sep 17 00:00:00 2001 From: Steffen Date: Tue, 3 Mar 2015 17:37:03 +0100 Subject: [PATCH] Changed array initialization because it did not compile under windows. --- graphics.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics.cc b/graphics.cc index e526e4e..b53ea3b 100644 --- a/graphics.cc +++ b/graphics.cc @@ -315,7 +315,7 @@ void Graphics::updateLights() { lightingShader->setUniform("directionalIntensity", level->getDirectionalLight()->getIntensity()); } - float flameData[closestLights.size() * 6] = {}; + float* flameData = new float[closestLights.size() * 6]; int flameIndex = 0; for (unsigned int i = 0; i