Make NavMeshCacheItem consistent

Move all logic related to this type into its methods.
This commit is contained in:
elsid 2019-03-10 15:48:12 +03:00
parent 8dab6e0f6c
commit 614d5243c3
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40
7 changed files with 152 additions and 147 deletions

View file

@ -1447,7 +1447,7 @@ namespace MWRender
try
{
const auto locked = it->second->lockConst();
mNavMesh->update(locked->getValue(), mNavMeshNumber, locked->getGeneration(),
mNavMesh->update(locked->getImpl(), mNavMeshNumber, locked->getGeneration(),
locked->getNavMeshRevision(), mNavigator.getSettings());
}
catch (const std::exception& e)