Disabled AI crew commands in multiplayer, attempting to give commands to a character with no AIController doesn't crash the game
This commit is contained in:
@@ -148,7 +148,7 @@ namespace Barotrauma
|
||||
frame.RemoveChild(child);
|
||||
}
|
||||
|
||||
List<Character> aliveCharacters = crewManager.characters.FindAll(c => !c.IsDead);
|
||||
List<Character> aliveCharacters = crewManager.characters.FindAll(c => !c.IsDead && c.AIController is HumanAIController);
|
||||
|
||||
characterFrameBottom = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user