This commit is contained in:
Tony Garnock-Jones 2021-02-23 09:42:10 +01:00
parent 057a343aa3
commit edfc38f811
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ export class Turn {
}
enqueue(actor: Actor, a: LocalAction): void {
this.queues.has(actor) ? this.queues.get(actor)!.push(a) : this.queues.set(actor, [a]);
this.queues.get(actor)?.push(a) ?? this.queues.set(actor, [a]);
}
complete(): void {