From 2e38f0b641c44ef8ff3139d2b93fd288c487871e Mon Sep 17 00:00:00 2001 From: elsid Date: Wed, 16 Feb 2022 02:58:21 +0100 Subject: [PATCH] Fix btAABB initialization --- apps/navmeshtool/worldspacedata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/navmeshtool/worldspacedata.cpp b/apps/navmeshtool/worldspacedata.cpp index 81bbd857f5..50e529c6e5 100644 --- a/apps/navmeshtool/worldspacedata.cpp +++ b/apps/navmeshtool/worldspacedata.cpp @@ -178,7 +178,7 @@ namespace NavMeshTool static_cast(cellPosition.y() * ESM::Land::REAL_SIZE), minHeight ); - aabb.m_min = btVector3( + aabb.m_max = btVector3( static_cast((cellPosition.x() + 1) * ESM::Land::REAL_SIZE), static_cast((cellPosition.y() + 1) * ESM::Land::REAL_SIZE), maxHeight