Does anyone have an answer to the following:

An employee's contract says they are entitled to a 13th cheque. The employee resigns effective 30 September. 13th cheques are paid in December. Is the company obliged to pay him a pro-rata 13th cheque pay out upon his or her resignation? Thanks