mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-09 03:57:51 +03:00
aicombat pathfinding fix - check the correct list
This commit is contained in:
parent
85c467f00f
commit
5b48ca114f
1 changed files with 1 additions and 1 deletions
|
@ -391,7 +391,7 @@ namespace MWMechanics
|
|||
|
||||
void PathFinder::syncStart(const std::list<ESM::Pathgrid::Point> &path)
|
||||
{
|
||||
if (path.size() < 2)
|
||||
if (mPath.size() < 2)
|
||||
return; //nothing to pop
|
||||
std::list<ESM::Pathgrid::Point>::const_iterator oldStart = path.begin();
|
||||
std::list<ESM::Pathgrid::Point>::iterator iter = ++mPath.begin();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue