This allows you to add and remove spells while in map edit mode. Spells have remove or add where the reagent count normally is. You double click on the spell to add or remove it. Also included is a picture showing it in action.
Spellbook_object *save_book = book;
Patch 1 uses save_book as the object in void Spellbook_gump::do_spell. Patch 2 uses book. The function call that was already using save_book doesn't seem to need it and neither do my additions.