Discuss this with your doctor and dietician at Medcare. Erectile dysfunction does affect people who are inactive and overweight. So you could adopt a diet that will help to control your weight. In addition, limiting your consumption of salt, sugar, fats and alcohol will also help you to overcome this condition faster.