Skip to content

Commit

Permalink
Fix transactions crashing due to typescripts weird compilation order
Browse files Browse the repository at this point in the history
  • Loading branch information
platz1de committed Oct 13, 2024
1 parent 4a6c9b4 commit 8db30dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/game/transaction/TerritoryTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ export class TerritoryTransaction extends Transaction {
protected readonly territoryQueue: Array<number> = [];
protected readonly borderQueue: Array<number> = [];
protected readonly defendantBorderQueue: Array<number> = [];
protected namePos: number;
protected namePosSize: number;
protected defendantNamePos: number;
protected defendantNamePosSize: number;
protected namePos: number = 0;
protected namePosSize: number = 0;
protected defendantNamePos: number = 0;
protected defendantNamePosSize: number = -1;

constructor(attacker: Player, defendant: Player | null) {
super(attacker);
Expand Down
1 change: 0 additions & 1 deletion src/game/transaction/Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export abstract class Transaction {
protected constructor(player: Player) {
this.player = player;
this.addExecutor(...getTransactionExecutors(Transaction));
this.cleanup();
}

/**
Expand Down

0 comments on commit 8db30dd

Please sign in to comment.