1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00

Pathing bugfix.

When path contains one one point from path grid, point is no longer being discarded.
This commit is contained in:
dteviot 2015-08-16 18:56:28 +12:00
parent 942a987d52
commit 4d9d8a060d

View File

@ -212,6 +212,10 @@ namespace MWMechanics
// nodes are the same
if(startNode == endNode.first)
{
ESM::Pathgrid::Point temp(mPathgrid->mPoints[startNode]);
converter.ToWorld(temp);
mPath.push_back(temp);
mPath.push_back(endPoint);
return;
}