mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-29 02:13:05 +00:00
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:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user