From: simon Date: Fri, 1 Jul 2005 16:50:49 +0000 (+0000) Subject: James Harvey points out that entering an invalid game ID can affect X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/commitdiff_plain/5c9f61fd500f6fd53a9f33721a1e66b9d5e1d9cc?hp=5c9f61fd500f6fd53a9f33721a1e66b9d5e1d9cc James Harvey points out that entering an invalid game ID can affect the current midend state even if you don't subsequently enter a valid one. Reorganise midend_game_id_int() so that (just like midend_deserialise()) it does all its error checking before altering anything in the midend's persistent data, so that it either succeeds completely or fails before doing anything at all. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@6045 cda61777-01e9-0310-a592-d414129be87e ---