Skip to content

Commit c275d63

Browse files
committed
fix tests
1 parent 48b076c commit c275d63

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/core/execution/FakeHumanExecution.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,11 @@ export class FakeHumanExecution implements Execution {
9292
// this.isTraitor = true
9393
}
9494

95-
this.player =
96-
this.mg.player(this.nation.playerInfo.id) ??
97-
this.mg.addPlayer(this.nation.playerInfo);
95+
if (!this.mg.hasPlayer(this.nation.playerInfo.id)) {
96+
this.player = this.mg.addPlayer(this.nation.playerInfo);
97+
} else {
98+
this.player = this.mg.player(this.nation.playerInfo.id);
99+
}
98100
}
99101

100102
private updateRelationsFromEmbargos() {

0 commit comments

Comments
 (0)