Skip to content

fix crash when a ship with no primary banks is ordered to disable/disarm - #7660

Open
Goober5000 wants to merge 1 commit into
scp-fs2open:masterfrom
Goober5000:fix/gtbc_disable
Open

fix crash when a ship with no primary banks is ordered to disable/disarm#7660
Goober5000 wants to merge 1 commit into
scp-fs2open:masterfrom
Goober5000:fix/gtbc_disable

Conversation

@Goober5000

Copy link
Copy Markdown
Contributor

Gunships and other custom ship classes may run through the primary weapon code despite having no primary banks. Add a few guards to prevent this from causing crashes.

Fixes a crash reported in Causality: The Great War.

Gunships and other custom ship classes may run through the primary weapon code despite having no primary banks.  Add a few guards to prevent this from causing crashes.

Fixes a crash reported in Causality: The Great War.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Goober5000 Goober5000 added fix A fix for bugs, not-a-bugs, and/or regressions. gameplay A feature or issue that can significantly impact gameplay Requested by Active Mod A feature request that has been requested by a mod that is actively in development. labels Jul 27, 2026
@Goober5000 Goober5000 added this to the Release 26.2 milestone Jul 28, 2026
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. gameplay A feature or issue that can significantly impact gameplay 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.

1 participant