Fix compiler warning C4804 under Visual Studio

This commit is contained in:
mogemimi 2016-04-25 10:46:33 +09:00
parent 5aa83ef1cf
commit d2c46167c3
1 changed files with 1 additions and 1 deletions

View File

@ -774,7 +774,7 @@ void Sprite3D::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags)
const auto lights = scene->getLights(); const auto lights = scene->getLights();
bool usingLight = false; bool usingLight = false;
for (const auto light : lights) { for (const auto light : lights) {
usingLight = (light->isEnabled() && (unsigned int)light->getLightFlag() & _lightMask) > 0; usingLight = light->isEnabled() && ((static_cast<unsigned int>(light->getLightFlag()) & _lightMask) > 0);
if (usingLight) if (usingLight)
break; break;
} }