Similar to this issue, here is how you can, on commit 9ecf7276bbf17969def951ab1e8f387add8cfe51, get into a state where you can no longer add a second player:
1. Select a two player map. Set first player to be 'CPU', second player to be 'Human'.
2. Change first player to 'Network'.
3. Change second player to be 'CPU'. This results in the first player becoming 'Human' and the second player being 'Closed'.
4. Try to set the second player to 'CPU'. It fails, the second player immediately jumps back to 'Closed'.