1
0
forked from 0ad/0ad

Fix incorrect random selection for team placement

accepted by: @Freagarach
Differential revision: https://code.wildfiregames.com/D5077
This was SVN commit r27938.
This commit is contained in:
marder 2023-11-18 16:52:40 +00:00
parent f544c6776b
commit eeaa4bf159

View File

@ -43,7 +43,7 @@ GameSettings.prototype.Attributes.TeamPlacement = class TeamPlacement extends Ga
if (this.settings.map.map === "random" || this.value !== "random")
return false;
this.value = pickRandom(this.available).Id;
this.value = pickRandom(this.available);
return true;
}
};