mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 04:20:29 +00:00
bug fix
This commit is contained in:
parent
764011dd1b
commit
f5d589388c
@ -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…
x
Reference in New Issue
Block a user