Skip to content

a bit of cleanup#7458

Merged
Goober5000 merged 1 commit into
scp-fs2open:masterfrom
Goober5000:cleanup/coverity_and_claude
May 14, 2026
Merged

a bit of cleanup#7458
Goober5000 merged 1 commit into
scp-fs2open:masterfrom
Goober5000:cleanup/coverity_and_claude

Conversation

@Goober5000
Copy link
Copy Markdown
Contributor

Fix a few items flagged by Coverity and Claude:

  • properly check for an unassigned ship node, rather than just Asserting, since this could be affected by mission data
  • properly check for null containers for the same reason
  • rename ai_goal_find_empty_slot to ai_goal_allocate_slot and edit comments to reflect its not-quite-side-effect-free role

Fix a few items flagged by Coverity and Claude:
- properly check for an unassigned ship node, rather than just Asserting, since this could be affected by mission data
- properly check for null containers for the same reason
- rename `ai_goal_find_empty_slot` to `ai_goal_allocate_slot` and edit comments to reflect its not-quite-side-effect-free role
@Goober5000 Goober5000 added coverity An issue flagged by Coverity cleanup A modification or rewrite of code to make it more understandable or easier to maintain. labels May 14, 2026
@Goober5000 Goober5000 merged commit 3455b0f into scp-fs2open:master May 14, 2026
20 checks passed
@Goober5000 Goober5000 deleted the cleanup/coverity_and_claude branch May 14, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup A modification or rewrite of code to make it more understandable or easier to maintain. coverity An issue flagged by Coverity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants