simon-git: puzzles (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Fri Oct 6 19:49:07 BST 2017


TL;DR:
  f6b2f47 Fix assertion failure if you Undo right at startup.

Repository:     https://git.tartarus.org/simon/puzzles.git
On the web:     https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2017-10-06 19:49:07

commit f6b2f47ef3feca86b0d16c28b607acdea5fc6235
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=f6b2f47ef3feca86b0d16c28b607acdea5fc6235;hp=a58c1b216bb1d4547f7b2ef2703fe2d0cd3b5cac
Author: Simon Tatham <anakin at pobox.com>
Date:   Fri Oct 6 19:49:05 2017 +0100

    Fix assertion failure if you Undo right at startup.
    
    The initial call to midend_new_game() was creating a partial
    serialisation containing no game states at all, which meant that if
    your first UI action was an undo operation, the game would try to
    deserialise that and complain that it was incomplete. Now we detect
    that in advance and don't create a useless serialisation in the first
    place.

 midend.c | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)



More information about the tartarus-commits mailing list