From 92f52287bfa96394fe8ab6b7f1ed469a9e9e6bd6 Mon Sep 17 00:00:00 2001 From: elsid Date: Mon, 20 Aug 2018 01:13:16 +0300 Subject: [PATCH] Make PathFinder::ClearPath inline --- apps/openmw/mwmechanics/pathfinding.cpp | 6 ------ apps/openmw/mwmechanics/pathfinding.hpp | 6 +++++- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/apps/openmw/mwmechanics/pathfinding.cpp b/apps/openmw/mwmechanics/pathfinding.cpp index f58686438c..b5d59b5211 100644 --- a/apps/openmw/mwmechanics/pathfinding.cpp +++ b/apps/openmw/mwmechanics/pathfinding.cpp @@ -87,12 +87,6 @@ namespace MWMechanics { } - void PathFinder::clearPath() - { - mPath.clear(); - mCell = nullptr; - } - /* * NOTE: This method may fail to find a path. The caller must check the * result before using it. If there is no path the AI routies need to diff --git a/apps/openmw/mwmechanics/pathfinding.hpp b/apps/openmw/mwmechanics/pathfinding.hpp index ae330fb92f..4f71d18cdf 100644 --- a/apps/openmw/mwmechanics/pathfinding.hpp +++ b/apps/openmw/mwmechanics/pathfinding.hpp @@ -58,7 +58,11 @@ namespace MWMechanics public: PathFinder(); - void clearPath(); + void clearPath() + { + mPath.clear(); + mCell = nullptr; + } void buildPath(const osg::Vec3f& startPoint, const osg::Vec3f& endPoint, const MWWorld::CellStore* cell, const PathgridGraph& pathgridGraph);