mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Fix serialization errors when hosting MP game.
Follows D2746 /9fc6c3c897anddad2857538. Player colors are copied from the settings, which are deep-frozen, thus not extensible. Cloning them restores that, allowing serialization. Reported By: Angen Differential Revision: https://code.wildfiregames.com/D3263 This was SVN commit r24466.
This commit is contained in:
parent
9fc6c3c897
commit
f0faab7a42
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ PlayerSettingControls.PlayerColor = class extends GameSettingControlDropdown
|
|||
smallestDistance = distance;
|
||||
}
|
||||
}
|
||||
this.values.push(closestColor);
|
||||
this.values.push(clone(closestColor));
|
||||
}
|
||||
|
||||
this.dropdown.list = this.values.map(color => coloredText(this.ColorIcon, rgbToGuiColor(color)));
|
||||
|
|
|
|||
Loading…
Reference in a new issue