I'm going to assume that when you say went up to about 40 degrees that you're in the UK temperatures are based off Celsius. 40°c is equal to 104°f.
I can't give you a positive answer about everything being okay, but maybe one of the other people that are more familiar with breeding can give you that answer. I wouldn't think 104 for for an hour would cause any ill affects, but let somebody with more knowledge chime in on this one. Sorry it happened though and good luck.
EDIT:
Had to add my little °![]()