mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 03:43:44 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user