Merge pull request #402 from UdjinM6/v0.12.0.x_fix_budget_autocheck_crash

V0.12.0.x fix CFinalizedBudget::AutoCheck() crash
This commit is contained in:
UdjinM6 2015-07-05 18:14:50 +03:00
commit 3d787e9273

View File

@ -1258,6 +1258,11 @@ void CFinalizedBudget::AutoCheck()
{
std::vector<CBudgetProposal*> props1 = budget.GetBudget();
if(props1.size() == 0) {
LogPrintf("CFinalizedBudget::AutoCheck - Can't get Budget, aborting\n");
return;
}
for(unsigned int i = 0; i < vecProposals.size(); i++){
if(i > props1.size()-1) {
LogPrintf("CFinalizedBudget::AutoCheck - Vector size mismatch, aborting\n");