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

Prevent crash from -1 array idx when searching zones #75834

Conversation

inogenous
Copy link
Contributor

Summary

Bugfixes "Prevent crash from -1 array idx when searching zones"

Purpose of change

Bugfix for the bugfix in #75739 .

Describe the solution

Ok so this is embarrassing. #75739 was supposed to fix #75738 . It didn't. I don't know what I was thinking, the check should obviously be >= 0 and not >= -1 because that was what it was supposed to prevent. I even recall testing it, but I must have commit --amend:ed it somehow.

Describe alternatives you've considered

Hiding in shame.

Testing

Yes. Now it does not crash. Promise!

Additional context

Prevents a crash when searching for zones to add, but the search yields
no results.
@github-actions github-actions bot added Info / User Interface Game - player communication, menus, etc. [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Aug 19, 2024
@dseguin dseguin merged commit de745ea into CleverRaven:master Aug 20, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Searching for the Zone type crashes the game
2 participants