From d7db0d3d4653d4dadd71e4a1eb09f9ef64ac985e Mon Sep 17 00:00:00 2001 From: elsid Date: Wed, 19 Nov 2025 20:17:19 +0100 Subject: [PATCH] Use uniform_real_distribution for agent half extents They have float type. --- apps/benchmarks/detournavigator/navmeshtilescache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/benchmarks/detournavigator/navmeshtilescache.cpp b/apps/benchmarks/detournavigator/navmeshtilescache.cpp index eabd757796..7c5795a81e 100644 --- a/apps/benchmarks/detournavigator/navmeshtilescache.cpp +++ b/apps/benchmarks/detournavigator/navmeshtilescache.cpp @@ -33,7 +33,7 @@ namespace osg::Vec3f generateAgentHalfExtents(float min, float max, auto& random) { - std::uniform_int_distribution distribution(min, max); + std::uniform_real_distribution distribution(min, max); return osg::Vec3f(distribution(random), distribution(random), distribution(random)); }