]> git.gir.st - solVItaire.git/commit
fix find-following master github/master
authorgirst <girst@users.noreply.github.com>
Thu, 19 May 2022 13:16:03 +0000 (15:16 +0200)
committergirst <girst@users.noreply.github.com>
Thu, 19 May 2022 13:16:03 +0000 (15:16 +0200)
commit1883ee0c67f3e5f7807f7a886333360e31f804be
tree867b1e84a293b3ed1e4120d2e46f2f5e2560f57c
parentf03ba8b175a7179a12677a525963949dc6ee50ae
fix find-following

this bug manifested in freecell as the ace of clubs not recognized as
placable on the foundation (from the tableu) when all four free cells
were occupied.
due to us not checking that find_top() found a card at all, we
accidentally checked foundation[-1], which is the fourth free cell.

there are probably more bugs stemming from this misuse of find_top().
sol.c
Imprint / Impressum