1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-31 14:36:39 +00:00

Make Pathfinder constructor inline

This commit is contained in:
elsid 2018-08-20 01:13:59 +03:00
parent 92f52287bf
commit b6dd2119a6
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40
2 changed files with 4 additions and 6 deletions

View file

@ -82,11 +82,6 @@ namespace MWMechanics
return (std::abs(from.z() - h) <= PATHFIND_Z_REACH); 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 * 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 * result before using it. If there is no path the AI routies need to

View file

@ -56,7 +56,10 @@ namespace MWMechanics
class PathFinder class PathFinder
{ {
public: public:
PathFinder(); PathFinder()
: mCell(nullptr)
{
}
void clearPath() void clearPath()
{ {