fixed bug with counting votes

This commit is contained in:
Evan Duffield 2015-06-22 07:20:34 -07:00
parent 12e5f8f4d4
commit feaaf1e166

View File

@ -43,10 +43,10 @@ public:
nVotes = 0;
}
CMasternodePayee(CAmount nValueIn, CScript payee) {
CMasternodePayee(CAmount nValueIn, CScript payee, int nVotesIn) {
scriptPubKey = payee;
nValue = nValueIn;
nVotes = 0;
nVotes = nVotesIn;
}
};
@ -74,7 +74,7 @@ public:
}
}
CMasternodePayee c((CAmount)nAmount, payeeIn);
CMasternodePayee c((CAmount)nAmount, payeeIn, nIncrement);
vecPayments.push_back(c);
}