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
@@ -197,8 +197,12 @@ namespace Barotrauma
IsRemotePlayer = ownerID > 0;
}
break;
}
case 2:
ReadStatus(msg);
break;
}
msg.ReadPadBits();
break;
}
}