From c9fe6d362262b3567052c40e515eabe7904f78ef Mon Sep 17 00:00:00 2001 From: sleet01 Date: Wed, 15 Nov 2023 08:56:00 -0800 Subject: [PATCH] Fix for failure loading files that contain infantryWeaponMounted objects --- megamek/src/megamek/common/util/SerializationHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/megamek/src/megamek/common/util/SerializationHelper.java b/megamek/src/megamek/common/util/SerializationHelper.java index 12fcf9287c4..2bfb1bbbc8b 100644 --- a/megamek/src/megamek/common/util/SerializationHelper.java +++ b/megamek/src/megamek/common/util/SerializationHelper.java @@ -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, @@ -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);