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

Fix out of bounds access when updating current scene #79945

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

hvarga
Copy link
Contributor

@hvarga hvarga commented Jul 27, 2023

Fixes #79944.

I have fixed this by always saving the path of the current edited scene even if the path is empty (this happens when all scene tabs are closed). In case when empty, the value for the current_scene will be changed to an empty string.

@hvarga
Copy link
Contributor Author

hvarga commented Jul 27, 2023

I have analyzed the failed check. My change is not the one that causes failure. Seems like something got into master branch since #36252 has the same issue.

@YuriSizov YuriSizov modified the milestones: 4.x, 4.2 Jul 27, 2023
@YuriSizov YuriSizov requested a review from KoBeWi July 27, 2023 09:38
@fire fire requested a review from a team July 30, 2023 13:33
@YuriSizov YuriSizov changed the title Fix current-scene update Fix out of bounds access when updating current scene Jul 31, 2023
@YuriSizov YuriSizov merged commit fbe7602 into godotengine:master Jul 31, 2023
13 checks passed
@YuriSizov
Copy link
Contributor

Thanks!

@hvarga hvarga deleted the fix-current-scene-update branch August 1, 2023 14:21
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.

Error "Index p_idx = -1 is out of bounds (edited_scene.size() = 1)" emitted during opening of a Godot editor
4 participants