Skip to content

Commit 40266e0

Browse files
committed
fix(GameImpl): simplify teamSpawnArea condition by removing unnecessary playerTeams check
1 parent 48e518f commit 40266e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/game/GameImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ export class GameImpl implements Game {
798798
}
799799

800800
teamSpawnArea(team: Team): SpawnArea | undefined {
801-
if (!this._teamGameSpawnAreas || !this.playerTeams) {
801+
if (!this._teamGameSpawnAreas) {
802802
return undefined;
803803
}
804804
const numTeams = this.playerTeams.length;

0 commit comments

Comments
 (0)