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

Fixing bad index used in Space2DSW (Fixes #11695) #12757

Merged
merged 1 commit into from
Nov 9, 2017

Conversation

MateusMP
Copy link
Contributor

@MateusMP MateusMP commented Nov 8, 2017

Fix wrong col_obj access using wrong index variable.

The real issue was in lines 672 and 701, where the wrong index variable was being used.
It seems like this issue would affect any collision between objects with different number of colliders.
I renamed the two variable in question so they are less confusing to avoid this issue.

j to body_shape_idx
shape_idx to col_shape_idx

Hopefully this should be the right fix for the issue. If it's not, please, let me know!

(reopened because the branch name had a bad character in it...)

@groud
Copy link
Member

groud commented Nov 8, 2017

Hi, thanks for your contribution :)
Could you please amend your commit and give it a more descriptive message ? Maybe something like "Fixing bad index used in Space2DSW".

@groud groud added this to the 3.0 milestone Nov 8, 2017
Fix wrong col_obj access using wrong index variable.
Related with issue godotengine#11695
@MateusMP
Copy link
Contributor Author

MateusMP commented Nov 8, 2017

Amend done.

@Zireael07
Copy link
Contributor

Could you also edit the Github web PR title?

@groud groud changed the title Fix issue #11695 Fixing bad index used in Space2DSW (Fixes #11695) Nov 9, 2017
@akien-mga akien-mga merged commit 05fc741 into godotengine:master Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants