Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null protection when generating forces from fixed scenarios like Base Defense #4436

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

SuperStucco
Copy link

Fixes #4429.

The 'fixed' scenarios like Base Defense, which are generated via code rather than using scenario template XMLs, call methods in AtBDynamicScenarioFactory so they do not have the same support for passing roles. For now they pass null for the required roles parameter, which requires a bit of extra handling.

There should be some consideration to consolidating these scenario types to use the same template system as the standard scenarios, both for streamlining and to make it easier to customize them at the user/player level.

@IllianiCBT IllianiCBT merged commit c40d0f6 into MegaMek:master Jul 20, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enemy Force Generation, Transport(?) NPE.
3 participants