Skip to content

fix a few SEXP tree problems with variables and containers#7203

Merged
wookieejedi merged 1 commit intoscp-fs2open:masterfrom
Goober5000:variable_and_container_arguments
Feb 13, 2026
Merged

fix a few SEXP tree problems with variables and containers#7203
wookieejedi merged 1 commit intoscp-fs2open:masterfrom
Goober5000:variable_and_container_arguments

Conversation

@Goober5000
Copy link
Contributor

  1. Add default strings for variables and containers, providing something more appropriate than <new default required!>.
  2. Replace the Assert in add_default_operator with a check for a valid variable index. This prevents a crash if FRED adds an operator that takes a variable as an argument and there are no variables in the mission.
  3. Add the correct variable type to get_listing_opf_variable_names() to fix SEXP tree construction in certain circumstances.

Apply the same fixes to QtFRED as well.

1. Add default strings for variables and containers, providing something more appropriate than `<new default required!>`.
2. Replace the `Assert` in `add_default_operator` with a check for a valid variable index.  This prevents a crash if FRED adds an operator that takes a variable as an argument and there are no variables in the mission.
3. Add the correct variable type to `get_listing_opf_variable_names()` to fix SEXP tree construction in certain circumstances.

Apply the same fixes to QtFRED as well.
@Goober5000 Goober5000 added fix A fix for bugs, not-a-bugs, and/or regressions. qtfred A feature or issue related to qtFred. sexps A feature or issue related to SEXPs fred A feature or issue related to the FReespace EDitor (FRED) labels Jan 29, 2026
@github-project-automation github-project-automation bot moved this to Work In Progress (PRs) in qtFRED2 Jan 29, 2026
@Goober5000 Goober5000 added this to the Release 25.0.1 milestone Jan 29, 2026
Copy link
Member

@wookieejedi wookieejedi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely useful QoL fixes and updates, and code looks good.

@github-project-automation github-project-automation bot moved this from Work In Progress (PRs) to In Review (PRs) in qtFRED2 Feb 11, 2026
@wookieejedi wookieejedi merged commit b341e85 into scp-fs2open:master Feb 13, 2026
20 checks passed
@github-project-automation github-project-automation bot moved this from In Review (PRs) to Done in qtFRED2 Feb 13, 2026
@Goober5000 Goober5000 deleted the variable_and_container_arguments branch February 15, 2026 02:19
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. fred A feature or issue related to the FReespace EDitor (FRED) qtfred A feature or issue related to qtFred. sexps A feature or issue related to SEXPs

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants