Skip to content

Fix two small issues - #7690

Open
wookieejedi wants to merge 2 commits into
scp-fs2open:masterfrom
wookieejedi:small-fixes
Open

Fix two small issues#7690
wookieejedi wants to merge 2 commits into
scp-fs2open:masterfrom
wookieejedi:small-fixes

Conversation

@wookieejedi

Copy link
Copy Markdown
Member

Fix copy-paste bug where setting $Ask Help Hull Percent: never properly got set. Fortunately this does not affect the AI, only when the AI sends a message to the player asking for help.

Fix edge-case issue: in find_turret_enemy, the turret-tgt-ship-tgt shortcut takes the parent ship's target and indexes Ships[] with it unconditionally, but aip->target_objnum could be a weapon or asteroid, which could be at an index higher than the ships index, and then trying to look up team could lead to bad data.

Fix copy-paste bug where setting `$Ask Help Hull Percent:` never properly got set. Fortunately this does not affect the AI, only when the AI sends a message to the player asking for help.

Fix edge-case issue: in `find_turret_enemy`, the `turret-tgt-ship-tgt` shortcut takes the parent ship's target and indexes Ships[] with it unconditionally, but `aip->target_objnum` could be a weapon or asteroid, which could be at an index higher than the ships index, and then trying to look up team could lead to bad data.
@wookieejedi wookieejedi added this to the Release 26.0.1 milestone Aug 6, 2026
@wookieejedi wookieejedi added the fix A fix for bugs, not-a-bugs, and/or regressions. label Aug 6, 2026
@wookieejedi wookieejedi added the Point Release Candidate An already merged bugfix that may be merged into a previous stable version label Aug 7, 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. Point Release Candidate An already merged bugfix that may be merged into a previous stable version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants