It's because of the mPathFinder.checkPathCompleted instruction above. If a point is reached, it deletes the point. But if the path is completed (ie empty) this functions return true, so fixing this is easy.
Sadly, I can't commit the changes just yet.
Crash from pathfinding stuff
Re: Crash from pathfinding stuff
I've committed a workaround/solution here, it would be great if someone can review the code please.
EDIT: example
mRotate = true;
perhaps that shouldn't be set if mTargetAngle is unchanged?
EDIT: example
mRotate = true;
perhaps that shouldn't be set if mTargetAngle is unchanged?