mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
Add missing decrease for free navmesh data size
This commit is contained in:
parent
d3633bbada
commit
696bb9adc8
@ -132,6 +132,7 @@ namespace DetourNavigator
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
mUsedNavMeshDataSize -= static_cast<std::size_t>(item.mNavMeshData.mSize) + item.mNavMeshKey.size();
|
mUsedNavMeshDataSize -= static_cast<std::size_t>(item.mNavMeshData.mSize) + item.mNavMeshKey.size();
|
||||||
|
mFreeNavMeshDataSize -= static_cast<std::size_t>(item.mNavMeshData.mSize) + item.mNavMeshKey.size();
|
||||||
mFreeItems.pop_back();
|
mFreeItems.pop_back();
|
||||||
|
|
||||||
tileValues->second.Map.erase(value);
|
tileValues->second.Map.erase(value);
|
||||||
|
Loading…
Reference in New Issue
Block a user