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

AStar get_available_point_id () initially returns 1 instead of 0 #48950

Closed
OlexiyKravchuk opened this issue May 22, 2021 · 8 comments · Fixed by #48958
Closed

AStar get_available_point_id () initially returns 1 instead of 0 #48950

OlexiyKravchuk opened this issue May 22, 2021 · 8 comments · Fixed by #48958
Milestone

Comments

@OlexiyKravchuk
Copy link

Godot version:
Godot_v3.3.1-stable_win64

OS/device including version:
Win7 x64

Issue description:
AStar. get_available_point_id () initially returns 1 instead of 0.
Also, in some cases, for unknown reasons, it returns 1 twice in a row.

The first mistake in this line ...

return 1;

Someone correct this one figure, it has been waiting for more than a year.

@OlexiyKravchuk
Copy link
Author

OlexiyKravchuk commented May 22, 2021

#38263
#43494

@deveshXm
Copy link

I'd like to work on this.

@akien-mga
Copy link
Member

@deveshXm There's a fix already, see the PR linked above your comment.

@akien-mga akien-mga added this to the 4.0 milestone May 22, 2021
@deveshXm
Copy link

@deveshXm There's a fix already, see the PR linked above your comment.

I am beginner. So can i make a pull request on this or has this been already merged and closed because it shows me open.

@akien-mga
Copy link
Member

akien-mga commented May 22, 2021

See this:
Screenshot_20210522_165823

If you click the link, you'll see a Pull Request which aims at fixing this issue. It is still Open, so it hasn't been merged yet. But unless there are reasons to think that it wouldn't be merged (e.g. if the fix is wrong), then there's no reason for you to make another PR fixing the issue. We only need one fix (and the best one :)).

You can help by reviewing that PR and confirming that it's how you would have fixed the issue too.

This issue will be closed as fixed once the PR is reviewed and merged.

@deveshXm
Copy link

See this:
Screenshot_20210522_165823

If you click the link, you'll see a Pull Request which aims at fixing this issue. It is still Open, so it hasn't been merged yet. But unless there are reasons to think that it wouldn't be merged (e.g. if the fix is wrong), then there's no reason for you to make another PR fixing the issue. We only need one fix (and the best one :)).

You can help by reviewing that PR and confirming that it's how you would have fixed the issue too.

This issue will be closed as fixed once the PR is reviewed and merged.

okay. Thank you for the help.

@OlexiyKravchuk
Copy link
Author

if this is a ready-made fix why was it not included in version 3.4?

@Calinou
Copy link
Member

Calinou commented Aug 1, 2021

if this is a ready-made fix why was it not included in version 3.4?

See the description of #48958:

Technically it breaks compat so not sure if it should be cherry-picked.

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

Successfully merging a pull request may close this issue.

5 participants