From b6dd2119a63c62760631612fe27affaa6d01eb00 Mon Sep 17 00:00:00 2001 From: elsid Date: Mon, 20 Aug 2018 01:13:59 +0300 Subject: [PATCH] Make Pathfinder constructor 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 b5d59b521..23a468d21 100644 --- a/apps/openmw/mwmechanics/pathfinding.cpp +++ b/apps/openmw/mwmechanics/pathfinding.cpp @@ -82,11 +82,6 @@ namespace MWMechanics return (std::abs(from.z() - h) <= PATHFIND_Z_REACH); } - PathFinder::PathFinder() - : 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 4f71d18cd..47d5640ad 100644 --- a/apps/openmw/mwmechanics/pathfinding.hpp +++ b/apps/openmw/mwmechanics/pathfinding.hpp @@ -56,7 +56,10 @@ namespace MWMechanics class PathFinder { public: - PathFinder(); + PathFinder() + : mCell(nullptr) + { + } void clearPath() {