Fixed GetBudget

This commit is contained in:
Evan Duffield 2015-08-04 10:55:54 -07:00
parent c770283371
commit 76959ead20

View File

@ -664,11 +664,10 @@ std::vector<CBudgetProposal*> CBudgetManager::GetBudget()
if(pbudgetProposal->GetAmount() + nBudgetAllocated <= nTotalBudget) { if(pbudgetProposal->GetAmount() + nBudgetAllocated <= nTotalBudget) {
pbudgetProposal->SetAllotted(pbudgetProposal->GetAmount()); pbudgetProposal->SetAllotted(pbudgetProposal->GetAmount());
nBudgetAllocated += pbudgetProposal->GetAmount(); nBudgetAllocated += pbudgetProposal->GetAmount();
vBudgetProposalsRet.push_back(pbudgetProposal);
} else { } else {
pbudgetProposal->SetAllotted(0); pbudgetProposal->SetAllotted(0);
} }
vBudgetProposalsRet.push_back(pbudgetProposal);
} }
++it2; ++it2;