James Harvey points out that entering an invalid game ID can affect
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 1 Jul 2005 16:50:49 +0000 (16:50 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 1 Jul 2005 16:50:49 +0000 (16:50 +0000)
commit5c9f61fd500f6fd53a9f33721a1e66b9d5e1d9cc
tree2eca990818af117c056095c7393d1785e86dc319
parente35b546fbb9841c13300c02093d550b10871dae7
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
midend.c