I'm playing a wizard and I found out that I was able to change my prepared spells on the fly. This is most likely just a bug, but I thought it was worth mentioning it just in case.
I have not tried this in combat.
This might ring true for clerics too, but I have not tested that yet.