mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
Fixed GetBudget
This commit is contained in:
parent
c770283371
commit
76959ead20
@ -664,11 +664,10 @@ std::vector<CBudgetProposal*> CBudgetManager::GetBudget()
|
||||
if(pbudgetProposal->GetAmount() + nBudgetAllocated <= nTotalBudget) {
|
||||
pbudgetProposal->SetAllotted(pbudgetProposal->GetAmount());
|
||||
nBudgetAllocated += pbudgetProposal->GetAmount();
|
||||
vBudgetProposalsRet.push_back(pbudgetProposal);
|
||||
} else {
|
||||
pbudgetProposal->SetAllotted(0);
|
||||
}
|
||||
|
||||
vBudgetProposalsRet.push_back(pbudgetProposal);
|
||||
}
|
||||
|
||||
++it2;
|
||||
|
Loading…
Reference in New Issue
Block a user