1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 10:53:51 +00:00
This commit is contained in:
gus 2014-01-26 22:06:54 +01:00
parent 764011dd1b
commit f5d589388c

View file

@ -266,6 +266,15 @@ namespace MWMechanics
path.push_front(pt); path.push_front(pt);
current = mGraph[current].parent; current = mGraph[current].parent;
} }
if(path.empty())
{
ESM::Pathgrid::Point pt = pathGrid->mPoints[goal];
pt.mX += xCell;
pt.mY += yCell;
path.push_front(pt);
}
return path; return path;
} }