Hmm. Maybe instead of commenting out the function call altogether, you could try changing the line that reads:
Code:
pp->skills[i] = database.GetSkillCap(pp->class_, (SkillUseTypes)i, 1);
to:
Code:
pp->skills[i] = database.GetSkillCap(pp->class_, (SkillUseTypes)i, 1) == 0 ? 0 : 1;