From 3565d92e1196705b5aae6f9922a78037e178cacb Mon Sep 17 00:00:00 2001 From: elsid Date: Mon, 20 Aug 2018 01:08:14 +0300 Subject: [PATCH] Make PathFinder::getPathCell inline --- apps/openmw/mwmechanics/pathfinding.cpp | 5 ----- apps/openmw/mwmechanics/pathfinding.hpp | 5 ++++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/apps/openmw/mwmechanics/pathfinding.cpp b/apps/openmw/mwmechanics/pathfinding.cpp index 2efd06e7b..c74eddf4c 100644 --- a/apps/openmw/mwmechanics/pathfinding.cpp +++ b/apps/openmw/mwmechanics/pathfinding.cpp @@ -299,9 +299,4 @@ namespace MWMechanics } } } - - const MWWorld::CellStore* PathFinder::getPathCell() const - { - return mCell; - } } diff --git a/apps/openmw/mwmechanics/pathfinding.hpp b/apps/openmw/mwmechanics/pathfinding.hpp index c03c69cf5..09ef3929d 100644 --- a/apps/openmw/mwmechanics/pathfinding.hpp +++ b/apps/openmw/mwmechanics/pathfinding.hpp @@ -86,7 +86,10 @@ namespace MWMechanics return mPath; } - const MWWorld::CellStore* getPathCell() const; + const MWWorld::CellStore* getPathCell() const + { + return mCell; + } /** Synchronize new path with old one to avoid visiting 1 waypoint 2 times @note