Skip to content

Commit

Permalink
Fix for failure loading files that contain infantryWeaponMounted objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleet01 committed Nov 15, 2023
1 parent a193a04 commit c9fe6d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megamek/src/megamek/common/util/SerializationHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public static XStream getSaveGameXStream() {
megamek.common.Game.class,
megamek.common.Hex.class,
megamek.common.Minefield.class,
megamek.common.Mounted.class,
megamek.common.PilotingRollData.class,
megamek.common.Player.class,
megamek.common.Sensor.class,
Expand All @@ -75,6 +74,7 @@ public static XStream getSaveGameXStream() {
xStream.allowTypeHierarchy(megamek.common.GameTurn.class);
xStream.allowTypeHierarchy(megamek.common.ITechnology.class);
xStream.allowTypeHierarchy(megamek.common.Transporter.class);
xStream.allowTypeHierarchy(megamek.common.Mounted.class);
xStream.allowTypeHierarchy(megamek.common.actions.EntityAction.class);
xStream.allowTypeHierarchy(megamek.common.icons.AbstractIcon.class);
xStream.allowTypeHierarchy(megamek.common.options.AbstractOptions.class);
Expand Down

0 comments on commit c9fe6d3

Please sign in to comment.