fix: Fixes base armor deserializing old version (#731)

This commit is contained in:
Kamron Batman 2021-08-26 13:45:31 -07:00 committed by GitHub
parent 1a336752a6
commit 451e53d006
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}