1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

Allow to use zero cache size

This commit is contained in:
elsid 2018-10-28 16:54:06 +03:00
parent abc51a8a17
commit af2f4e8424
2 changed files with 2 additions and 2 deletions

View File

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

View File

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