Commit af2f4e84 authored by elsid's avatar elsid

Allow to use zero cache size

parent abc51a8a
......@@ -72,7 +72,7 @@ namespace DetourNavigator
NavMeshTilesCache::Value NavMeshTilesCache::set(const osg::Vec3f& agentHalfExtents, const TilePosition& changedTile,
const RecastMesh& recastMesh, const std::vector<OffMeshConnection>& offMeshConnections,
NavMeshData value)
NavMeshData&& value)
{
const auto navMeshSize = static_cast<std::size_t>(value.mSize);
......
......@@ -105,7 +105,7 @@ namespace DetourNavigator
Value set(const osg::Vec3f& agentHalfExtents, const TilePosition& changedTile,
const RecastMesh& recastMesh, const std::vector<OffMeshConnection>& offMeshConnections,
NavMeshData value);
NavMeshData&& value);
private:
std::mutex mMutex;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment