Fix bug with vocation gainCap

Fixes #1041