cgame: fixed possible illegal memory access, refs #627