Gamesetup cleanup. Ensure the existance of the AI property after selecting a map or loading the persistmatchsettings.

This was SVN commit r18127.
This commit is contained in:
elexis
2016-05-02 17:08:22 +00:00
parent 36d8e0bf5b
commit c1b5e8c8b7
@@ -934,6 +934,7 @@ function sanitizePlayerData(playerData)
playerData.forEach((pData, index) => {
pData.Color = pData.Color || g_PlayerColors[index];
pData.Civ = pData.Civ || "random";
pData.AI = pData.AI || "";
});
// Replace colors with the best matching color of PlayerDefaults