Skip to content

clear ship registry after mission#7523

Draft
Goober5000 wants to merge 1 commit into
scp-fs2open:masterfrom
Goober5000:fix/ship_registry
Draft

clear ship registry after mission#7523
Goober5000 wants to merge 1 commit into
scp-fs2open:masterfrom
Goober5000:fix/ship_registry

Conversation

@Goober5000

Copy link
Copy Markdown
Contributor

Create a ship_level_close() function and call it from game_level_close(). Among other tasks, this clears the ship registry to prevent SEXPs or scripts from obtaining references to ships that have been deleted.

Follow-up to #7522.

Create a `ship_level_close()` function and call it from `game_level_close()`.  Among other tasks, this clears the ship registry to prevent SEXPs or scripts from obtaining references to ships that have been deleted.

Follow-up to scp-fs2open#7522.
@Goober5000 Goober5000 added fix A fix for bugs, not-a-bugs, and/or regressions. Waiting for Stable Marks a pull request that is to be merged after the next stable release, due to a release cycle labels Jun 13, 2026
@Goober5000 Goober5000 marked this pull request as draft June 18, 2026 04:54
@Goober5000

Goober5000 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

This is actually not going to work as written, because the debriefing sexp evaluation needs to access the ship registry.

EDIT: Maybe the way to do this is to replace ShipStatus::PRESENT with something else.

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. Waiting for Stable Marks a pull request that is to be merged after the next stable release, due to a release cycle

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant