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 27487: Ensure vehicle loot zone has corresponding cargo part on refresh #28142

Conversation

MetroidHunter
Copy link
Contributor

Summary

SUMMARY: Bugfixes "Ensure vehicle loot zone has corresponding cargo part on refresh"

Purpose of change

Fixes #27487

Describe the solution

When refreshing loot zone absolute positions on a vehicle, if the loot_zone expects to be mounted to a position where there will be a cargo part and there is no cargo part, we end up with a crash. Instead, we will now print a debug message alerting the player to the issue and remove the loot zone.

The road to reproing the conditions under which the loot_zones on the vehicle got out of sync from the parts on the vehicle is almost impossible to reproduce in a meaningful timeframe so I will not attempt to chase down how the logic around removing parts that have loot zones on them did not remove the loot_zone when the cargo part was removed.

@kevingranade
Copy link
Member

Merged to 0.D and master.

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

Successfully merging this pull request may close these issues.

Zone menu CTD, plus Error: Tried to access zone on unloaded vehicle
2 participants