1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-28 18:11:34 +00:00

Merge branch 'fix_coverity_warning' into 'master'

Fix coverity warning

See merge request OpenMW/openmw!1170
This commit is contained in:
jvoisin 2021-08-25 18:20:00 +00:00
commit c7d8f066b3

View file

@ -36,7 +36,7 @@ namespace DetourNavigator
TileBounds maxCellTileBounds(int size, const osg::Vec3f& shift)
{
const float halfCellSize = size / 2;
const float halfCellSize = static_cast<float>(size) / 2;
return TileBounds {
osg::Vec2f(shift.x() - halfCellSize, shift.y() - halfCellSize),
osg::Vec2f(shift.x() + halfCellSize, shift.y() + halfCellSize)