git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53738 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -390,7 +390,7 @@ Vect_net_build_graph(struct Map_info *Map,
dcost = 0;
for (j = 0; j < List->n_values; j++) {
- line = List->id[i];
+ line = List->id[j];
G_debug(2, " line (%d) = %d", j, line);
type = Vect_read_line(Map, NULL, Cats, line);
if (!(type & GV_POINT))