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

properly initialize cargo titles #6382

Merged

Conversation

Goober5000
Copy link
Contributor

This adds several missing initializations of cargo titles for both ships and subsystems. Note that Subsys_status initialization needs to happen in allocate_subsys_status(), because subsystems can be allocated in red-alert or in the ship-copy-damage SEXP, not just parsing.

Follow-up to #6000. Fixes a rather insidious ERANGE error in Inferno.

This adds several missing initializations of cargo titles for both ships and subsystems.  Note that `Subsys_status` initialization needs to happen in `allocate_subsys_status()`, because subsystems can be allocated in red-alert or in the `ship-copy-damage` SEXP, not just parsing.

Follow-up to scp-fs2open#6000.  Fixes a rather insidious ERANGE error in Inferno.
@Goober5000 Goober5000 added fix A fix for bugs, not-a-bugs, and/or regressions. Requested by Active Mod A feature request that has been requested by a mod that is actively in development. labels Oct 4, 2024
Copy link
Member

@wookieejedi wookieejedi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch with the SEXP and red alert edge cases

@Goober5000 Goober5000 merged commit b734d60 into scp-fs2open:master Oct 5, 2024
16 checks passed
@Goober5000 Goober5000 deleted the cargo_title_initialization branch October 5, 2024 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A fix for bugs, not-a-bugs, and/or regressions. Requested by Active Mod A feature request that has been requested by a mod that is actively in development.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants