Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some code looks wrong in floodRegion #613

Open
zzm0101 opened this issue Mar 20, 2023 · 1 comment
Open

Some code looks wrong in floodRegion #613

zzm0101 opened this issue Mar 20, 2023 · 1 comment

Comments

@zzm0101
Copy link

zzm0101 commented Mar 20, 2023

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)'

@grahamboree
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants