mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-13 21:40:11 +00:00
aicombat pathfinding fix - check the correct list
This commit is contained in:
parent
85c467f00f
commit
5b48ca114f
@ -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…
x
Reference in New Issue
Block a user