Skip to content

Fix assert for flag list and player ships#7415

Merged
wookieejedi merged 1 commit intoscp-fs2open:masterfrom
MjnMixael:qtfred-ship-flag-assert
May 1, 2026
Merged

Fix assert for flag list and player ships#7415
wookieejedi merged 1 commit intoscp-fs2open:masterfrom
MjnMixael:qtfred-ship-flag-assert

Conversation

@MjnMixael
Copy link
Copy Markdown
Contributor

In #7402 I set up the Ship Flag list to filter out some flags that aren't allowed or don't make sense for player ships. This included some flags that are checked on initialize for the flag dialog box. When the dialog box is opened for Player Ships this causes an assert because the flag isn't found.

So we make the assert a little smarter and we touch up the initialize code to only process flags that are valid for the current selection.

Fixes #7413

@wookieejedi wookieejedi added fix A fix for bugs, not-a-bugs, and/or regressions. qtfred A feature or issue related to qtFred. labels Apr 30, 2026
@github-project-automation github-project-automation Bot moved this to Work In Progress (PRs) in qtFRED2 Apr 30, 2026
@github-project-automation github-project-automation Bot moved this from Work In Progress (PRs) to In Review (PRs) in qtFRED2 Apr 30, 2026
@wookieejedi wookieejedi merged commit 636390b into scp-fs2open:master May 1, 2026
50 of 80 checks passed
@github-project-automation github-project-automation Bot moved this from In Review (PRs) to Done in qtFRED2 May 1, 2026
@MjnMixael MjnMixael deleted the qtfred-ship-flag-assert branch May 1, 2026 12:37
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. qtfred A feature or issue related to qtFred.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

QTFRED: Crash On Opening Ship Flags Dialog

3 participants