Coughing and peeing

Pauliny • 28 years young. Have an 8 year old daughter and expecting Noah in April.
26weeks and caught a horrible cold, have been coughing a lot! It's so bad that I'll get cough attacks and I'll end up peeing myself. It's usually just a tiny bit, but tonight I full on peed myself in front of my husband. He was so concerned about me and thought it was so weird that I was laughing so hard at myself. I love him. Lol. Anywayss... I just wanted to know if anyone else has had this problem and whats the best thing I can do? Should I buy myself some diapers until i get over this cold?