From 9581591605368b08f5e6f0ca011186ca05ee98de Mon Sep 17 00:00:00 2001 From: CrystalMoogle Date: Fri, 21 Jul 2023 18:20:29 +0100 Subject: [PATCH] Fix --- BlackjackGUI/Game.vb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BlackjackGUI/Game.vb b/BlackjackGUI/Game.vb index 3040b32..d4e8173 100644 --- a/BlackjackGUI/Game.vb +++ b/BlackjackGUI/Game.vb @@ -34,7 +34,7 @@ Sub DealCard(playerDealt As Object, Optional hide As Boolean = False) Dim card As Tuple(Of String, String) = deck(0) Dim playingCard = New Card(card, hide) - playerDealt.hand.Add(card) + playerDealt.hand.Add(playingCard) deck.RemoveAt(0) GetTotal(playerDealt, hide) If hide Then @@ -43,7 +43,7 @@ Dim cardNumber As String = If(TypeOf playerDealt Is Dealer, (playerDealt.hand.Count + 5).ToString(), playerDealt.hand.Count) - RaiseEvent CardDealt(card, cardNumber, hide) + RaiseEvent CardDealt(playingCard, cardNumber, hide) RaiseEvent SetTotalLabels(player.total, dealer.total) End Sub