Possible solve to #2 : bugfix in src/map.c get_rnode_block()

When there were a link, returned e was too big, leading in wrong rstart
argument for the next call.
This commit is contained in:
Yann Weber 2018-07-01 22:26:18 +02:00
commit 6b0583b848

View file

@ -484,6 +484,10 @@ get_rnode_block(int *map, map_node * node, map_rnode * rblock, int rstart)
ints_host_to_network(&rblock[e + rstart], map_rnode_iinfo);
}
//TODO : modify the function header or copy its body into map_get_rblock
if(node->links) {
e--;
}
return e;
}