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 door on select, door controls should keep selection #73789

Merged
merged 1 commit into from
May 14, 2024

Conversation

irwiss
Copy link
Contributor

@irwiss irwiss commented May 14, 2024

Summary

None

Purpose of change

Fix a couple oopses in veh_menu

Fixes #73763

Describe the solution

Fix crash from calling without checking std::function, fix selection resetting and visibility updating when opening/closing doors/curtains

Describe alternatives you've considered

Testing

Spawn luxury rv, add electronics controls in the main body, open/close the curtains via door motors, shouldn't crash, menu selection should remain in place when opening/closing curtains

Additional context

@github-actions github-actions bot added Vehicles Vehicles, parts, mechanics & interactions [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels May 14, 2024
@dseguin dseguin merged commit dd720c3 into CleverRaven:master May 14, 2024
24 of 29 checks passed
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label May 14, 2024
@irwiss irwiss deleted the doors-fix branch May 15, 2024 00:10
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 [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions Vehicles Vehicles, parts, mechanics & interactions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Control Doors and Curtains" vehicle option crashes the game
2 participants