diff --git a/Server/UAdminHandling.pas b/Server/UAdminHandling.pas index 553367b..32fad6f 100644 --- a/Server/UAdminHandling.pas +++ b/Server/UAdminHandling.pas @@ -98,7 +98,8 @@ begin while CEDServerInstance.TCPServer.IterNext do begin netState := TNetState(CEDServerInstance.TCPServer.Iterator.UserData); - if (netState <> nil) and (netState.Account.AccessLevel >= AAccessLevel) then + if (netState <> nil) and (netState.Account <> nil) and + (netState.Account.AccessLevel >= AAccessLevel) then CEDServerInstance.SendPacket(netState, APacket, False); end; APacket.Free;