diff --git a/apps/benchmarks/detournavigator/navmeshtilescache.cpp b/apps/benchmarks/detournavigator/navmeshtilescache.cpp index eabd757796..176ed3d201 100644 --- a/apps/benchmarks/detournavigator/navmeshtilescache.cpp +++ b/apps/benchmarks/detournavigator/navmeshtilescache.cpp @@ -94,9 +94,9 @@ namespace std::vector areaTypes; if (distribution(random) < 0.939) { - generateVertices(std::back_inserter(vertices), triangles * 2.467, random); + generateVertices(std::back_inserter(vertices), static_cast(triangles * 2.467), random); generateIndices(std::back_inserter(indices), static_cast(vertices.size() / 3) - 1, - vertices.size() * 1.279, random); + static_cast(vertices.size() * 1.279), random); generateAreaTypes(std::back_inserter(areaTypes), indices.size() / 3, random); } return Mesh(std::move(indices), std::move(vertices), std::move(areaTypes)); @@ -109,7 +109,7 @@ namespace result.mCellPosition = generateVec2i(1000, random); result.mCellSize = ESM::Land::REAL_SIZE; result.mMinHeight = distribution(random); - result.mMaxHeight = result.mMinHeight + 1.0; + result.mMaxHeight = result.mMinHeight + 1.0f; result.mLength = static_cast(ESM::Land::LAND_SIZE); std::generate_n( std::back_inserter(result.mHeights), ESM::Land::LAND_NUM_VERTS, [&] { return distribution(random); });