Some code looks wrong in floodRegion
zzm0101 opened this issue · comments
RecastRegion.cpp function 'floodRegion'
unsigned short lev = level >= 2 ? level-2 : 0;
...
...
if (chf.dist[ai] >= lev && srcReg[ai] == 0)
it seems that there may be an error in this section of code.
It should be changed to 'if (chf.dist [ai] >= level && srcReg [ai] == 0)'
Hi! Thanks for reporting this, but could you please provide some additional information that helps illustrates the problem? A test case or explanation would help me determine whether there's an issue here and if so what it is.