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

Do not add TECH_CLAN to originalUnitTech #1666

Conversation

sixlettervariables
Copy link
Contributor

This fixes a bug introduced in the refactoring commit d59fa1f. The old code set originalUnitTech to 0 before adding either 2 for clan tech or using postfix increment for IS2. The new code did not reset originalUnitTech to 0.

Copy link
Contributor

@Windchild292 Windchild292 left a comment

Choose a reason for hiding this comment

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

My bad, missed removing the +.

@sixlettervariables sixlettervariables merged commit f20effc into MegaMek:master Apr 12, 2020
@sixlettervariables sixlettervariables deleted the original-unit-tech-clan-bug branch October 8, 2020 17:34
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.

2 participants