Fixed compilation error

Former-commit-id: 1f0f0fd117c8a1ab2fc17c98d5065ab8bf4f4c00
This commit is contained in:
Lynix 2013-04-17 21:30:32 +02:00
parent 86cd0ddbe1
commit 3e916c91f0
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ void NzScene::Draw()
std::sort(visibleLights.begin(), visibleLights.end(), lightComparator); std::sort(visibleLights.begin(), visibleLights.end(), lightComparator);
const unsigned int maxLightPerObject = 3; ///TODO: Config const unsigned int maxLightPerObject = 3; ///TODO: Config
unsigned int max = std::min(std::min(maxLights - lightIndex, maxLightPerObject), visibleLights.size()); unsigned int max = std::min(std::min(maxLights - lightIndex, maxLightPerObject), static_cast<unsigned int>(visibleLights.size()));
for (unsigned int i = 0; i < max; ++i) for (unsigned int i = 0; i < max; ++i)
visibleLights[i]->Apply(shader, lightIndex + i); visibleLights[i]->Apply(shader, lightIndex + i);