Fixed some map saving bugs with ID cards/PDAs.

This commit is contained in:
Pieter-Jan Briers
2021-01-15 17:20:02 +01:00
parent a668e545ed
commit e51f74a1f1
2 changed files with 9 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ namespace Content.Server.GameObjects.Components.Access
public override void Initialize()
{
base.Initialize();
_ownerOriginalName = Owner.Name;
_ownerOriginalName ??= Owner.Name;
UpdateEntityName();
}
@@ -77,6 +77,7 @@ namespace Content.Server.GameObjects.Components.Access
serializer.DataField(ref _fullName, "fullName", string.Empty);
serializer.DataField(ref _jobTitle, "jobTitle", string.Empty);
serializer.DataField(ref _ownerOriginalName, "originalOwnerName", null);
}
}
}