diff --git a/TSOClient/tso.simantics/NetPlay/Model/VMNetAvatarPersistState.cs b/TSOClient/tso.simantics/NetPlay/Model/VMNetAvatarPersistState.cs index 77e7cd263..f7def4f37 100644 --- a/TSOClient/tso.simantics/NetPlay/Model/VMNetAvatarPersistState.cs +++ b/TSOClient/tso.simantics/NetPlay/Model/VMNetAvatarPersistState.cs @@ -251,7 +251,7 @@ public void Save(VMAvatar avatar) saveDaywear = saveDaywear || (bID == 0x24E0000000D || bID == 0x10000000D); BodyOutfit = (saveDaywear)?avatar.DefaultSuits.Daywear.ID : bID; - HeadOutfit = avatar.HeadOutfit.ID; + HeadOutfit = avatar.HeadOutfit?.ID ?? 0; Name = avatar.Name; Permissions = avatar.AvatarState.Permissions; AvatarFlags = ((VMTSOAvatarState)avatar.TSOState).Flags;