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

Fixed Camouflage Directory Assignment for Null Faction Codes #5090

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

IllianiCBT
Copy link
Collaborator

Changed the default camouflage directory to "Standard Camouflage" when the faction code is null, ensuring valid directory assignment.

Closes #4987

Changed the default camouflage directory to "Standard Camouflage" when the faction code is null, ensuring valid directory assignment.
@IllianiCBT IllianiCBT added the Bug label Oct 21, 2024
@IllianiCBT IllianiCBT self-assigned this Oct 21, 2024
Changed the calculation for `numTracks` to use Math.max, ensuring it is at least 1. This prevents issues that arose from having zero tracks.
@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.43%. Comparing base (a339462) to head (e3fd3b7).
Report is 147 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #5090   +/-   ##
=========================================
  Coverage     10.42%   10.43%           
- Complexity     6028     6036    +8     
=========================================
  Files           953      953           
  Lines        134113   134122    +9     
  Branches      19435    19438    +3     
=========================================
+ Hits          13979    13989   +10     
+ Misses       118785   118781    -4     
- Partials       1349     1352    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@HammerGS HammerGS merged commit 5eb1966 into MegaMek:master Oct 21, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NPE when trying to select show all factions in GM contract creation
3 participants