Account: count coins from 1..X
This commit is contained in:
parent
350c2351b1
commit
07d812f5d9
@ -340,7 +340,7 @@ void ATBDeviceControllerPlugin::private_getAccountData()
|
||||
accountData.insert("accountStartTime", startDateTime);
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
|
||||
// COINS in Vault: --------------------------------------------------------
|
||||
|
||||
int numberOfCoinVariants = sizeof(retVR.coinsInVault);
|
||||
|
||||
@ -351,7 +351,7 @@ void ATBDeviceControllerPlugin::private_getAccountData()
|
||||
if (numberOfCoinVariants > 16) { numberOfCoinVariants = 16; }
|
||||
|
||||
accountData.insert("NumberOfCoinVariants", numberOfCoinVariants);
|
||||
for (int i = 0; i < numberOfCoinVariants; ++i) {
|
||||
for (int i = 1; i <= numberOfCoinVariants; ++i) {
|
||||
accountData.insert("COIN_" + QString::number(i) + "_Quantity", retVR.coinsInVault[i]);
|
||||
accountData.insert("COIN_" + QString::number(i) + "_Value", retVR.coinDenomination[i]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user