Changed array initialization because it did not compile under windows.

This commit is contained in:
Steffen 2015-03-03 17:37:03 +01:00
parent e07e2a5b14
commit 99d77a0e9e

View File

@ -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<closestLights.size(); i++) {
if (closestLights.at(i).getFlameYOffset() != 0.0f) {