From 8b2b360621aa259e578fa571338ca906ddd361c6 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Fri, 1 Jan 2021 16:01:31 -0700 Subject: [PATCH] Fix the deck being set to the single card we're removing --- server/src/objects/Deck.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/objects/Deck.ts b/server/src/objects/Deck.ts index ad644f5..1d04a7b 100644 --- a/server/src/objects/Deck.ts +++ b/server/src/objects/Deck.ts @@ -39,7 +39,7 @@ export class Deck { // Move it from the arrays cards.push(card); - this._deck = this._deck.splice(index, 1); + this._deck.splice(index, 1); this._unknown.push(card); };