mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
fix loop condition
prev[sink] == 0 means there was a path found with the last step being a forward edge to the sink, and the edge being at index 0 in the array. This is a valid path (the same as any other path indicated by prev[sink] > 0).
This commit is contained in:

committed by
Simon Tatham

parent
f6b2f47ef3
commit
00e23909f8
Reference in New Issue
Block a user