fix(core): Fixes issues with deserialization due to bad checking of dirty tracking (#618)
Fixes a major issue where serialization was not respecting the dirty tracking feature flag.
This commit is contained in:
parent
3c6356e8fa
commit
1f499b00c6
8 changed files with 16 additions and 7 deletions
|
|
@ -1,8 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Xml;
|
||||
using Server.Accounting.Security;
|
||||
using Server.Misc;
|
||||
|
|
@ -43,12 +41,12 @@ namespace Server.Accounting
|
|||
LoginIPs = Array.Empty<IPAddress>();
|
||||
|
||||
Accounts.Add(this);
|
||||
((ISerializable)this).MarkDirty();
|
||||
}
|
||||
|
||||
public Account(Serial serial)
|
||||
{
|
||||
Serial = serial;
|
||||
|
||||
SetTypeRef(GetType());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue