1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-29 19:04:31 +00:00

Use uniform_real_distribution for agent half extents

They have float type.
This commit is contained in:
elsid 2025-11-19 20:17:19 +01:00 committed by AnyOldName3
parent 2386c9d1dc
commit c844e93f82

View file

@ -33,7 +33,7 @@ namespace
osg::Vec3f generateAgentHalfExtents(float min, float max, auto& random)
{
std::uniform_int_distribution<int> distribution(min, max);
std::uniform_real_distribution<float> distribution(min, max);
return osg::Vec3f(distribution(random), distribution(random), distribution(random));
}