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