From 5b48ca114fee7742ad8bc8f18f0baaa9ced7e945 Mon Sep 17 00:00:00 2001 From: cc9cii Date: Tue, 25 Feb 2014 07:41:10 +1100 Subject: [PATCH] aicombat pathfinding fix - check the correct list --- apps/openmw/mwmechanics/pathfinding.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/pathfinding.cpp b/apps/openmw/mwmechanics/pathfinding.cpp index 5996eb079..8dbdd8770 100644 --- a/apps/openmw/mwmechanics/pathfinding.cpp +++ b/apps/openmw/mwmechanics/pathfinding.cpp @@ -391,7 +391,7 @@ namespace MWMechanics void PathFinder::syncStart(const std::list &path) { - if (path.size() < 2) + if (mPath.size() < 2) return; //nothing to pop std::list::const_iterator oldStart = path.begin(); std::list::iterator iter = ++mPath.begin();