Fixed occasional invalid object header errors when attempting to send a status NetworkEvent for a character (easy way to reproduce was to kill multiple characters during the same frame with an explosion).

This commit is contained in:
Joonas Rikkonen
2018-01-16 17:02:01 +02:00
parent 0db1885872
commit 0f7befa09e
3 changed files with 13 additions and 4 deletions
@@ -1045,7 +1045,6 @@ namespace Barotrauma.Networking
fl.Close();
throw new Exception("Error while reading update from server: please send us \"crashreport_object.bin\"!");
break;
}
prevObjHeader = objHeader;
prevBitPos = inc.Position;