]> git.scottworley.com Git - planeteer/commit
Don't use 0 for uninitialized indexes
authorScott Worley <sworley@chkno.net>
Tue, 29 Nov 2011 15:31:20 +0000 (07:31 -0800)
committerScott Worley <sworley@chkno.net>
Tue, 29 Nov 2011 15:31:20 +0000 (07:31 -0800)
commitfb8eccbfa74c0ac19f24d40cbc3b7e660eda9eeb
tree87020865dfbb71e0e00be1ffd70de1db1e1d197a
parent311b26d48114468d26758f2a30b1d794cb324102
Don't use 0 for uninitialized indexes

0 is a valid index.  It can legitimately be the head of the optimal
path.  When it was the head of the optimal path, DescribePath() would
print nothing.  This fixes that bug.
planeteer.go