From c3be640fb9393d66b1c63dead0c0fd770907f8f8 Mon Sep 17 00:00:00 2001 From: Scott Anderson <662325+scottanderson@users.noreply.github.com> Date: Wed, 14 May 2025 22:15:01 -0400 Subject: [PATCH] src/client/graphics/layers/SpawnTimer.ts --- src/client/graphics/layers/SpawnTimer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/graphics/layers/SpawnTimer.ts b/src/client/graphics/layers/SpawnTimer.ts index 42298f1d9..d6854ad62 100644 --- a/src/client/graphics/layers/SpawnTimer.ts +++ b/src/client/graphics/layers/SpawnTimer.ts @@ -24,13 +24,14 @@ export class SpawnTimer implements Layer { this.ratios = []; this.colors = []; - if (this.game.config().gameConfig().gameMode != GameMode.Team) { + if (this.game.config().gameConfig().gameMode !== GameMode.Team) { return; } const teamTiles: Map = new Map(); for (const player of this.game.players()) { const team = player.team(); + if (team === null) throw new Error("Team is null"); const tiles = teamTiles.get(team) ?? 0; const sum = tiles + player.numTilesOwned(); teamTiles.set(team, sum);