The case is somewhat different when the act has become immoral after the promise was made: still, here also, the prior duty of abstaining from it would be universally held to prevail.

ME Book 3 Chapter 6 Section 6