From 17c79f1661fec6d68064c3e67e1d07ccac75cfdd Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 31 Mar 2018 22:44:15 -0400 Subject: [PATCH] fix bug where purchases always succeeded --- src/gui/coin/CardInput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/coin/CardInput.cpp b/src/gui/coin/CardInput.cpp index 2f110438f..3e28123f2 100644 --- a/src/gui/coin/CardInput.cpp +++ b/src/gui/coin/CardInput.cpp @@ -46,7 +46,7 @@ void CardInput::Next() void CardInput::AttemptPurchase() { std::string error; - int num = 0;//rand()%100; + int num = rand()%100; if (num < purchaseChance) { bool confirm = ConfirmPrompt::Blocking("Purchase \xEA""owdercoins?", "Clicking 'Confirm' will charge your card and add " +