Cheating

If you have sex with someone and you thought they broke up with their girlfriend but then you found out they didn't, what do you do? Am I terrible person for this?