Fix out of bounds error

This commit is contained in:
barelyprofessional
2026-01-05 21:13:42 -06:00
parent b7f570beef
commit 318241a58c

View File

@@ -92,7 +92,7 @@ public static class BlackjackHelper
// Shuffle using Fisher-Yates
for (int i = deck.Count - 1; i > 0; i--)
{
int j = Money.GetRandomNumber(gambler, 0, i + 1);
int j = Money.GetRandomNumber(gambler, 0, i + 1, incrementMaxParam: false);
(deck[i], deck[j]) = (deck[j], deck[i]);
}