/u/Celebreth did a really in depth answer to this question here: https://www.reddit.com/r/AskHistorians/comments/1riwc2/comment/cdo10lp?st=J03KBSKL&sh=13a0ca09
Follow up question: what if I was wounded instead, how would I be treated/cared for? Was there any pay awarded to disabled soldiers?