fix CFinalizedBudget::AutoCheck() crash

This commit is contained in:
UdjinM6 2015-07-05 10:37:52 +03:00
parent 8d7cce0f23
commit ce41645713

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");