mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 07:53:51 +00:00
bug fix
This commit is contained in:
parent
764011dd1b
commit
f5d589388c
1 changed files with 9 additions and 0 deletions
|
@ -266,6 +266,15 @@ namespace MWMechanics
|
|||
path.push_front(pt);
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue