1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +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;
}