diff --git a/src/masternode-budget.cpp b/src/masternode-budget.cpp index f10a1aeb0..12b895b72 100644 --- a/src/masternode-budget.cpp +++ b/src/masternode-budget.cpp @@ -465,7 +465,7 @@ std::vector CBudgetManager::GetAllProposals() std::map::iterator it2 = mapProposals.begin(); while(it2 != mapProposals.end()) { - (*it).second.CleanAndRemove(); + (*it2).second.CleanAndRemove(); CBudgetProposal* prop = &((*it2).second); ret.push_back(prop);