mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Fix out of bounds error
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user