fix(core): Fixes bad deserialization not skipping entry (#578)
This commit is contained in:
parent
ad7f3b3b5c
commit
5e1ec5416d
1 changed files with 5 additions and 0 deletions
|
|
@ -169,6 +169,8 @@ namespace Server
|
|||
{
|
||||
T t = entry.Entity;
|
||||
|
||||
var position = bin.Position;
|
||||
|
||||
// Skip this entry
|
||||
if (t == null)
|
||||
{
|
||||
|
|
@ -219,7 +221,10 @@ namespace Server
|
|||
{
|
||||
throw new Exception("Deserialization failed.");
|
||||
}
|
||||
|
||||
t.Delete();
|
||||
// Skip this entry
|
||||
bin.Seek(position + entry.Length, SeekOrigin.Begin);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue