From 696bb9adc897884f1c3960900403b1790428a5e3 Mon Sep 17 00:00:00 2001 From: elsid Date: Mon, 5 Nov 2018 02:17:54 +0300 Subject: [PATCH] Add missing decrease for free navmesh data size --- components/detournavigator/navmeshtilescache.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/components/detournavigator/navmeshtilescache.cpp b/components/detournavigator/navmeshtilescache.cpp index 8bbe8ed483..cd60fa7e8b 100644 --- a/components/detournavigator/navmeshtilescache.cpp +++ b/components/detournavigator/navmeshtilescache.cpp @@ -132,6 +132,7 @@ namespace DetourNavigator return; mUsedNavMeshDataSize -= static_cast(item.mNavMeshData.mSize) + item.mNavMeshKey.size(); + mFreeNavMeshDataSize -= static_cast(item.mNavMeshData.mSize) + item.mNavMeshKey.size(); mFreeItems.pop_back(); tileValues->second.Map.erase(value);