Skip uninitialized players on MultiplePlayerUpdate

This commit is contained in:
Sofia 2020-08-07 22:40:37 +03:00
parent 34e0063389
commit 92165cebc2
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@ namespace NeonTea.Quakeball.Networking.Packets {
public MultiplePlayerUpdatesPckt(List<NetPlayer> players) {
foreach (NetPlayer p in players) {
if (p.Controlled == null) {
continue;
}
Updates.Add(p.Controlled.CreatePacket(p.Id));
}
}