From 451e53d0061ab5cef51e06cb900bd1c7d0a9205d Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Thu, 26 Aug 2021 13:45:31 -0700 Subject: [PATCH] fix: Fixes base armor deserializing old version (#731) --- Projects/UOContent/Items/Armor/BaseArmor.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Projects/UOContent/Items/Armor/BaseArmor.cs b/Projects/UOContent/Items/Armor/BaseArmor.cs index 7f679bb14..aa929af57 100644 --- a/Projects/UOContent/Items/Armor/BaseArmor.cs +++ b/Projects/UOContent/Items/Armor/BaseArmor.cs @@ -1134,15 +1134,17 @@ namespace Server.Items { var flags = (OldSaveFlag)reader.ReadEncodedInt(); + Attributes = new AosAttributes(this); + if (GetSaveFlag(flags, OldSaveFlag.Attributes)) { - Attributes = new AosAttributes(this); Attributes.Deserialize(reader); } + ArmorAttributes = new AosArmorAttributes(this); + if (GetSaveFlag(flags, OldSaveFlag.ArmorAttributes)) { - ArmorAttributes = new AosArmorAttributes(this); ArmorAttributes.Deserialize(reader); }