diff --git a/src/graphics/render.cpp b/src/graphics/render.cpp index 3f7a39408..0850e6f40 100644 --- a/src/graphics/render.cpp +++ b/src/graphics/render.cpp @@ -798,7 +798,7 @@ void IrrDriver::renderGlow(std::vector& glows) scene::ISceneNode * cur = dat.node; STKMeshSceneNode *node = static_cast(cur); - node->setGlowColors(SColor(0, (unsigned)dat.b * 255.f, (unsigned)dat.g * 255.f, (unsigned)dat.r * 255.f)); + node->setGlowColors(SColor(0, (unsigned) (dat.b * 255.f), (unsigned)(dat.g * 255.f), (unsigned)(dat.r * 255.f))); if (!irr_driver->hasARB_draw_indirect()) node->render(); }