Unstable 0.1500.2.0 (Rokvach's dog edition)
This commit is contained in:
@@ -659,9 +659,9 @@ namespace Barotrauma
|
||||
public static IEnumerable<Character> GetSessionCrewCharacters()
|
||||
{
|
||||
#if SERVER
|
||||
return GameMain.Server.ConnectedClients.Select(c => c.Character).Where(c => c.Info != null);
|
||||
return GameMain.Server.ConnectedClients.Select(c => c.Character).Where(c => c?.Info != null);
|
||||
#else
|
||||
return GameMain.GameSession.CrewManager.GetCharacters().Where(c => c.Info != null);
|
||||
return GameMain.GameSession.CrewManager.GetCharacters().Where(c => c?.Info != null);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user