mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-03 04:56:42 +00:00
Merge branch 'fix_coverity_warning' into 'master'
Fix coverity warning See merge request OpenMW/openmw!1170
This commit is contained in:
commit
c7d8f066b3
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ namespace DetourNavigator
|
||||||
|
|
||||||
TileBounds maxCellTileBounds(int size, const osg::Vec3f& shift)
|
TileBounds maxCellTileBounds(int size, const osg::Vec3f& shift)
|
||||||
{
|
{
|
||||||
const float halfCellSize = size / 2;
|
const float halfCellSize = static_cast<float>(size) / 2;
|
||||||
return TileBounds {
|
return TileBounds {
|
||||||
osg::Vec2f(shift.x() - halfCellSize, shift.y() - halfCellSize),
|
osg::Vec2f(shift.x() - halfCellSize, shift.y() - halfCellSize),
|
||||||
osg::Vec2f(shift.x() + halfCellSize, shift.y() + halfCellSize)
|
osg::Vec2f(shift.x() + halfCellSize, shift.y() + halfCellSize)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue