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

Fix for #4892: failure loading files that contain infantryWeaponMounted objects #4893

Merged

Conversation

Sleet01
Copy link
Collaborator

@Sleet01 Sleet01 commented Nov 15, 2023

Ran into an issue where new save games could not be loaded back into current code.
It appears that something has changed in how we save infantry units.
Based on recommendation from other contributors, fix is to move megamek.common.Mounted.class into xStream.allowTypeHierarchy() call, as infantryWeaponMounted type is a subclass of this type.

Close #4892

@Sleet01 Sleet01 requested a review from neoancient November 15, 2023 17:13
@neoancient neoancient merged commit 0ff8db2 into MegaMek:master Nov 15, 2023
4 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.

[0.49.16] Load game fails due to megamek.common.InfantryWeaponMounted disallowed by Xstream
2 participants