Path Finding Find invalid paths

Hello,

i saw a wierd behaviour on my units and after spending a few time, i found out that the path finder had found a strange path :
here what i found :

  • it’s only when the 2 actors are close in X/Y
  • it’s only when no full path is available
  • path is still considered as partial ( but i allow partial path to my units ) but cost is correct ( in a way it’s equal to the direct distance to the target )

else it’s a normal path :

any idea what could cause this issue ?

thank !