Allow to use zero cache size

pull/541/head
elsid 6 years ago
parent abc51a8a17
commit af2f4e8424

@ -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;

Loading…
Cancel
Save