The StartingCamera class stores for every player its starting camera. As of rP26393 these can be loaded from the matchsettings.jsons. However the array size was not changing when the number of players changes. Which leads to errors when doing the following:
- Start a random map with some players (from the gamesetup gui).
- Quit the game
- Go in gamesetup and lower the number of players
- Start game
In current svn the matchsettings.json gets some empty objects in the playerData leading to undefined entries.
Instead we should listen to changing number of players.
Reported by marder.