From 865ef56a09aa739bdf42a7129ebd2c0d144f7bb8 Mon Sep 17 00:00:00 2001 From: elsid Date: Tue, 4 May 2021 12:58:57 +0200 Subject: [PATCH] Replace include by RecastMesh forward declaration To reduce dependency between navigator interface and implementation. --- components/detournavigator/navigator.hpp | 1 - components/detournavigator/recastmeshtiles.hpp | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/detournavigator/navigator.hpp b/components/detournavigator/navigator.hpp index d08bfa640f..edf597348f 100644 --- a/components/detournavigator/navigator.hpp +++ b/components/detournavigator/navigator.hpp @@ -6,7 +6,6 @@ #include "settings.hpp" #include "objectid.hpp" #include "navmeshcacheitem.hpp" -#include "recastmesh.hpp" #include "recastmeshtiles.hpp" namespace ESM diff --git a/components/detournavigator/recastmeshtiles.hpp b/components/detournavigator/recastmeshtiles.hpp index 68e30ba630..03059c7449 100644 --- a/components/detournavigator/recastmeshtiles.hpp +++ b/components/detournavigator/recastmeshtiles.hpp @@ -2,13 +2,14 @@ #define OPENMW_COMPONENTS_DETOURNAVIGATOR_RECASTMESHTILE_H #include "tileposition.hpp" -#include "recastmesh.hpp" #include #include namespace DetourNavigator { + class RecastMesh; + using RecastMeshTiles = std::map>; }