Crash from pathfinding stuff

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
User avatar
gus
Posts: 390
Joined: 11 Aug 2011, 15:41

Re: Crash from pathfinding stuff

Post by gus »

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.
User avatar
cc9cii
Posts: 523
Joined: 28 Mar 2013, 04:01

Re: Crash from pathfinding stuff

Post by cc9cii »

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?
Locked