aicombat pathfinding fix - check the correct list

actorid
cc9cii 11 years ago committed by Marc Zinnschlag
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…
Cancel
Save