From eed489a551dc5931291952530a128b2d2a06f244 Mon Sep 17 00:00:00 2001 From: evan Date: Sun, 27 Apr 2025 20:39:17 -0700 Subject: [PATCH] bugfix: make sure to add teams before assigning players, this caused all team games to have only two teams --- src/core/game/GameImpl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/game/GameImpl.ts b/src/core/game/GameImpl.ts index 21b10c21d..772cf7d23 100644 --- a/src/core/game/GameImpl.ts +++ b/src/core/game/GameImpl.ts @@ -85,7 +85,6 @@ export class GameImpl implements Game { nationMap: NationMap, private _config: Config, ) { - this.addHumans(); this._terraNullius = new TerraNulliusImpl(); this._width = _map.width(); this._height = _map.height(); @@ -112,6 +111,7 @@ export class GameImpl implements Game { if (numPlayerTeams >= 8) throw new Error(`Too many teams: ${numPlayerTeams}`); } + this.addHumans(); } private addHumans() {